dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.76k stars 180 forks source link

Launching a script within a script is not working #495

Open sharuman opened 6 years ago

sharuman commented 6 years ago

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?

cidus commented 6 years ago

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 6 years ago

Call with full path, it can work.

telnetdoogie commented 4 years ago

So... not an issue? Can be closed?