Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

korn shell startup

Posted on 2000-02-24
3
Medium Priority
?
196 Views
Last Modified: 2013-12-27
my new account is on a solaris system with ksh when i login, how to set it that it can start with csh, because i am familiar with that and have many written scripts. can i do it with user level? in my old account which is on OSF machine i can set my own startup settings in .cshrc and .cshrc.mine files, how to do this in ksh here? and what command is to change the email editor, not the general editor, in ksh? there aren't many system files starting with '.' in personal account in solaris.
0
Comment
Question by:wangzq
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 150 total points
ID: 2556068
1.  First try running 'chsh' to switch yourself to csh.  It may not work depending on how locked down the security on the box is, however.
2.  If this doesn't work, you could also setup a .profile file to do something like
    export SHELL=/usr/bin/csh
    exec /usr/bin/csh
3.  The editor for sending mail depends on what mailer you're using.  Mailx/Mail looks at the EDITOR line in ~/.mailrc (set EDITOR=/usr/bin/vi).  dtmail (the mailer in CDE) has its own built-in editor, as does the mail reader in Netscape Communicator.
4.  See the man pages for ksh and your mailer.
0
 

Author Comment

by:wangzq
ID: 2558265
none of your suggestions works. except the .profile idea, then the shell does't know most mail commands, like scan, inc,
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 2558367
scan and inc are not commands built into the shell.  They're part of the MH mail system.  I don't think MH is bundled with Solaris (or any other commercial Unix, for that matter), so you'll have hunt down a distribution for it if you want to keep using it.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question