Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching a script within a script is not working #495

Open
sharuman opened this issue Dec 10, 2017 · 3 comments
Open

Launching a script within a script is not working #495

sharuman opened this issue Dec 10, 2017 · 3 comments

Comments

@sharuman
Copy link

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
Copy link

cidus commented Jan 23, 2018

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
Copy link

jack4010 commented Aug 6, 2018

Call with full path, it can work.

@telnetdoogie
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants