On Thu, 22 Jun 2000, Lakshmi B. G. wrote:
> What do you mean by /bin/sh?
>
/bin/sh is the shell, ie the program which understands the
commands and executes them.
> /bin/sh
> cd /usr/local
>
> tho' it creates a bash shell it does not go to the specified directory.
If u understand the concept of shell, it will be pretty clear. I
can't explain it exacly but I'll try.
When you login into a terminal (tty or xterm) a shell is started
which keeps track of various things like where you are(pwd) etc.
if u give /bin/sh it will start another shell in the current
shell. All those variables you have exported will be visible in the new
shell but in general the original shell will never know what you are doing
in the new shell. if you change your pwd using cd then you are changing
the pwd of new shell. when you 'exit' the shell you would be in the
directory you were when you started the new shell.
Thus doing things in the new shell does not affect your original
shell. its just as if you are giving commands in some other terminal.
The at command executes the commands given at the specified
time. 'It uses /bin/sh' means the at daemon (A process running
continuously) executes the commands given as if you are manully giving the
commands at the specified time. It mails the output of the commands to
you.
Hope I have been able to clarify.
Bye and Enjoy life...............
Ajay Dwivedi
-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH