After you login, # preceed comments and are not commands you enter.
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:
edit by bakunin: You have asked the same question already here.
Do not post the same question twice. Thraed closed.
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)