"chroot"ing a script
how could we run a script from a certain directory?
Its a cron job need to be run by userA
What was done
issue is it does cd and then run rest of the commands from root(I assume)
If you mean that you want to run command one and command two from /desired-dir then the cd command is not what you want. Linux does not look for commands in the current directory. Linux looks for commands in the PATH and if the current directory is not on the PATH then those commands will not be found. Change the PATH instead of changing the current directory.
|All times are GMT -5. The time now is 12:49 PM.|