On 8/31/05, Vidyadutt S vidyadutt@gmail.com wrote:
When the script is executed, it gives the pwd as /opt and the ls lists the contents of /opt. But when I execute pwd from shell, it gives the directory from where I executed the script. Reason: The script is executed in a new shell. When it finishes the execution, the shell is killed automatically. Vidyadutt.
suprising i can achive the same thing, with
mkdir ll cd ll who > who.txt pwd ls
but instead of 'mkdir ll' if i put the /some_devfs/usb_device, then that ls command won't work. still clueless.