Computing.Net > Forums > Unix > Redirect path in csh script

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.

Redirect path in csh script

Reply to Message Icon

Name: ling_ss
Date: March 9, 2009 at 21:18:37 Pacific
OS: Windows XP
Subcategory: General
Comment:

Hi, I have lots of .csh script that refers to "/tmp" path. How do I set "/tmp" to refer to another path eg."/home/abc/mytmp" without replacing the script "/tmp" ? Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: March 16, 2009 at 14:57:11 Pacific
Reply:

How should this work?
The only thing you can do is, to write a small script to change the "/tmp" with "$HOME/tmp" in your csh scripts or add a variable at the begining of the scripts and change the path variable in the script to use this variable for temporary files.

Please send a reply, if you solved the problem !!!


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Redirect path in csh script

Time difference calculation in csh www.computing.net/answers/unix/time-difference-calculation-in-csh/7131.html

SQL in shell script www.computing.net/answers/unix/sql-in-shell-script/5703.html

how to parse a path in unix www.computing.net/answers/unix/how-to-parse-a-path-in-unix/3301.html