dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X

Home Page:http://www.controlplaneapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Launching a script within a script is not working

sharuman opened this issue · comments

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?

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.

Call with full path, it can work.

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