|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Shells
Lets say my default shell is bash and then i load up csh and then ksh. How would i exit csh without exiting ksh?
so basically i gone from bash > csh > ksh and i wish to close csh |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Closing csh will terminate ksh. Code:
kill -9 $PPID Last edited by rdrtx1; 10-09-2012 at 05:45 PM.. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
That means: you can exit the "csh" any way you want (sending it a KILL signal like was mentioned before is one way), but you will always exit the ksh too when you do so. The only way to circumvent this is to start the ksh in the background using "nohup". This will make the "leaf" to be its own branch starting from the main trunk (process "init") and hence leave it when you kill csh. You can not access this ksh directly any more, though, because it is not attached to any terminal any more. (This is fine for scripts writing to files, also for background processes, but will render interactive programs unusable.) I hope this helps. bakunin |
| The Following User Says Thank You to bakunin For This Useful Post: | ||
Piyush Jakra (10-10-2012) | ||
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between shells | Boby120677 | Shell Programming and Scripting | 1 | 08-07-2012 09:51 AM |
| shells and scripts | bjstaff | UNIX for Dummies Questions & Answers | 1 | 02-14-2012 05:01 PM |
| why we have different shells? | shahnazurs | UNIX for Advanced & Expert Users | 2 | 12-16-2008 11:36 PM |
| Different type of shells? | charbel | Shell Programming and Scripting | 1 | 05-05-2006 08:05 AM |
| Shells | dino_leix | UNIX for Advanced & Expert Users | 3 | 06-08-2005 06:07 AM |
|
|