Sponsored Content
Special Forums UNIX Desktop Questions & Answers command to run another shell on top of your default shell? Post 302712013 by Bill Thompson on Monday 8th of October 2012 10:31:51 AM
Old 10-08-2012
Quote:
Originally Posted by jim mcnamara
After you login, # preceed comments and are not commands you enter.
Code:
# to get the bash shell
/bin/bash
# to get the ksh shel
/bin/ksh

When you want to quit, you will be down inside a second shell. So that means
you next to type exit <return> exit <return>. The first exit gets you out of your preferred shell, the second one gets you out of unix.

Thank you.

Can i ask you one last question.

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

Moderator's Comments:
Mod Comment edit by bakunin: You have asked the same question already here.

Do not post the same question twice. Thraed closed.

Last edited by bakunin; 10-10-2012 at 06:47 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to run a shell command from C program?

Hi mates, i am trying to use the C execvp command to run a shell program like this: ..... char input ; printf("enter your command"); scanf("%ds",input) execvp input .... Compilation is ok but when i run it raise the error : Segmentation Error ... your help will be appreciated. ... (1 Reply)
Discussion started by: abdul
1 Replies

2. UNIX for Dummies Questions & Answers

How to run a command in shell 'A' from shell 'B'

Hello all.. I just want to login(ssh) to another system and run 'poweroff' command. This must be accomplished via a shell script($sh Myhalt host_name) and not from my bash!! Any idea??? :rolleyes: (1 Reply)
Discussion started by: rakabarp
1 Replies

3. Shell Programming and Scripting

Run a command on new created shell

Hi I am using a command "script" to capture the output of a command my script is #/bin/sh script filename.txt ./execute_some_script.sh exit exit Now my problem is that when my script run "script filename.txt" its fork a new shell and after the no other command execute The remaining... (2 Replies)
Discussion started by: sushantnirwan
2 Replies

4. Shell Programming and Scripting

Run a command in a special shell

Hi there, Imagine we have to run a command in python shell from a perl script. 1 #!/usr/bin/perl 2 use strict; 3 my @con; 4 @con = `python`; 5 #?????print `print 'salaam'`;???? What's suitable situation for fifth line? Thanks in advance. (4 Replies)
Discussion started by: Zaxon
4 Replies

5. Shell Programming and Scripting

Execute a shell script after a particular command is run

Hi, I need to run a script whenever the Cron file is modified. The requirement is whenever a user modifies the cron file, the script should run automatically. Can you please provide your inputs ? (5 Replies)
Discussion started by: harneet2004us
5 Replies

6. Shell Programming and Scripting

Need help with shell script - output of top command

I have written shell script to send file as an attachemt of email and output of "top -o res" command as email body. it works fine if i execute manually from prompt but it does not send "top -o res" command output in email body when it is executed via crontab. Any suggestions. My script is below:... (5 Replies)
Discussion started by: needyourhelp10
5 Replies

7. Shell Programming and Scripting

How do I run a shell command in a while loop?

The command is: sic -h irc.freenode.net 2>&1 | tee -a irc.log Where sic is an IRC client, and I'm piping the output to tee in order to log my IRC sessions. I'm trying to handle reconnects by running it in a while loop in the shell process and cat the initial commands into sic's stdin. I... (1 Reply)
Discussion started by: guitarscn
1 Replies

8. Shell Programming and Scripting

Shell Script to grep output from top command.

Hello, I want a script which would grep details from top command for specific processes. I m not sure of the PID of these processes but i know the names. $ top -c top - 16:41:55 up 160 days, 5:53, 2 users, load average: 9.36, 9.18, 8.98 Tasks: 288 total, 9 running, 279 sleeping, 0... (8 Replies)
Discussion started by: Siddheshk
8 Replies

9. Shell Programming and Scripting

run command in a script shell

Hello, Please i'd like to run command in a script shell , how can i do ? here my commands : cd blcr-build // run command in this rep sudo insmod ./blcr_imports/kbuild/blcr_imports.ko //root sudo insmod ./cr_module/kbuild/blcr.ko //root Thank you. (1 Reply)
Discussion started by: chercheur857
1 Replies

10. UNIX Desktop Questions & Answers

How to run addtional Shells on top of the default shell

Hi What is the command to run additional available shells on top of default shell. I am using bash also how can i tell that the additional shells are actually running? Also what is the advantage of running additional shells on top of your default login shell of bash? Lastly... (1 Reply)
Discussion started by: Bill Thompson
1 Replies
suspend(1)                                                         User Commands                                                        suspend(1)

NAME
suspend - shell built-in function to halt the current shell SYNOPSIS
sh suspend csh suspend ksh suspend DESCRIPTION
sh Stops the execution of the current shell (but not if it is the login shell). csh Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su. ksh Stops the execution of the current shell (but not if it is the login shell). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5) SunOS 5.10 15 Apr 1994 suspend(1)
All times are GMT -4. The time now is 02:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy