LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-11-2003, 07:06 PM   #1
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
how to execute commands on login


I have a Unix shell account that hosts my webpage (SDF, www.sdf1.org) and I didn't like the default shell (korn). I tried to change it to tcsh, so that it would load that instead, but the system won't let me (says 'non-standard shell' or something like that). However, I can load tcsh from the shell prompt. What I want to do is make it automatically load tcsh from the default shell upon login. I also want it to execute 'bksp ^?' which makes my Backspace key work on their system. Any ideas?
 
Old 10-11-2003, 07:16 PM   #2
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
you can edit your path to specify which default shell you use. Not sure how tho...here I found this:

[edit]

ACTUALLY this is a better one:

http://www.linuxquestions.org/questi...002/04/4/19409

Last edited by mossy; 10-11-2003 at 07:19 PM.
 
Old 10-12-2003, 01:48 PM   #3
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Original Poster
Rep: Reputation: 15
I found the answer in an old System V book. csh looks for a .login file upon login, from which commands are loaded. I just had to create a .login file with the text 'tcsh' and it loads it when I enter the system. Thanks for your suggestion though.
 
Old 10-12-2003, 01:52 PM   #4
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
kewl - thanks for posting your fix too.

the links above presumes you have that file already and It shows how to modify it. Yours is easier.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I execute two commands on exec of a find? eantoranz Programming 3 08-03-2010 04:51 PM
cannot execute some commands as an plain user! minike Slackware 5 09-03-2004 06:34 PM
how can execute some commands when a user logs out rddreamz Programming 2 05-25-2004 03:00 PM
C -how do i execute linux commands? ocularbob Programming 7 02-29-2004 01:51 PM
Written commands hard to execute Rutnut Linux - Newbie 6 02-22-2001 12:19 AM


All times are GMT -5. The time now is 11:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration