On 8/31/05, Vidyadutt S <[EMAIL PROTECTED]> 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. > --
i don't have any problem with pwd, in the script the pwd shows /mnt/usb, but if i put ls right after pwd in the script, it lists the files of dir from which the script is executed. -- Life is complex. It consists of real and imaginary parts. -- http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

