Closed aartaka closed 4 years ago
Given that the workind directory changes back to the pre-script state after bin/rhawk
ends, it's not harmful to use cd
here.
If there'd be a need, pushd
and popd
are the commands to use, but this case is too simple for this.
To go around the
File Not Found, Aborting Crawl ....
a relatively unpleasantcd out && exec php rhawk.php...
hack is used.Is there a better way to temporarily set the working directory for a running script?