in reply to How to change path
is not changing the dir "/usr/bin" , I reason I suppose is if we execute a command directly using back-ticks(`) it will execute in a new shell.But system() will execute the commands in same shell.Am I right??$pwd=`pwd`; print "\n pwd is $pwd"; `cd /usr/bin`; $pwd=`pwd`; print "\n pwd is $pwd\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to change path
by snowhare (Friar) on Oct 25, 2007 at 11:16 UTC |