Launching a script within a script is not working
sharuman opened this issue · comments
truth commented
Hello,
I am calling a script within a script and it's not working. If I try the same procedure from terminal everything is OK.
I have a two scripts basically:
script A is called from your app.
script B (made executable with chmod a+x command) is called from script A.
Script A is like:
while [ ... ]
do
./script_b.sh
sleep 3000
done
I don't understand what's wrong here. Any idea?
Alcides C. Moraes commented
I don't think the PWD is the script's path necessarily. You should either CD to the working directory you want, or call script_b with its full path.
jack4010 commented
Call with full path, it can work.
Jason Hobbs commented
So... not an issue? Can be closed?