![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| getting : No such file or directory while executing a shell script | ananthi_ku | Shell Programming and Scripting | 7 | 10-10-2008 09:08 AM |
| Change directory command (cd) | c00kie88 | Shell Programming and Scripting | 21 | 07-11-2008 10:01 AM |
| Executing script's directory | jasony001 | Shell Programming and Scripting | 2 | 03-03-2008 02:48 AM |
| Monitoring a directory for new files with .xx and executing command if found | krkan | Shell Programming and Scripting | 4 | 03-14-2006 11:16 PM |
| Change directory command (cd) | oscarr | Shell Programming and Scripting | 4 | 08-23-2002 08:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
This is a quick one. I have got a review comment in one of the scripts that i wrote: "In UNIX script it not advisable to use cd to a directory and then run command." Is this true? I was trying to cd to log directory and use some cat or head or ls command. Many Thanks, Sam |
|
|||||
|
another reason is you may be victim of spoofing (if . is in the PATH...) and other side effects (often with JAVA stuff...) like a program runs when you cd to the directory but fails when called from elsewhere (environment issue)...
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| cd not advisable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|