Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Change directory
Name: Frankie Date: December 20, 2001 at 03:31:16 Pacific
Comment:
I have test a dummy program, say test.h , this program only contains one line " cd /usr ", after I run this program, my current path is still my home directory , say /home/abc , but not /usr , do you know why?
Name: Acce Date: December 20, 2001 at 04:10:25 Pacific
Reply:
I want to upload a file from windows to UNIX, except ftp what protocal such as zmodem, kermit etc is better to do that, If I need to specify the source path (eg. c:\temp) to destination path ( /tmp) , what is the parameter to do that.
0
Response Number 2
Name: Anthony Foot Date: December 20, 2001 at 04:35:05 Pacific
Reply:
Answer to first question: When you run a shell script it creates it's own shell, and that is where the change directory takes place. When your program finishes it reverts back to your original shell and you will be back in your original directory. To force the script to run in your current shell put a full stop and space in front of the shell script name: . testh
Summary: Hi, I'm using korn shell. I'm calling a simple bit of script from within a script to change directory but it's not working. The change directory script is just something like: cd <whatever director...
Summary: Hi, I have a directory A in my home dir, I need a script to change to dir A, after executing the script I shouldn't be in my home dir (i.e pwd should show /home dir/A) how can I do this Hello I am wo...
Summary: I have a simple script that changes directory- cd /newdirectory pwd - when I run this it seems to execute correctly, but after it executes I'm still in my original directory. I guess I'm changing dire...