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

Daemonize skipping python commands #29

Open
rishabhjain9191 opened this issue Apr 24, 2019 · 1 comment
Open

Daemonize skipping python commands #29

rishabhjain9191 opened this issue Apr 24, 2019 · 1 comment

Comments

@rishabhjain9191
Copy link

I have a script that I want daemonize, daemonize_me.sh which calls some other python script. For example:

#!/bin/bash 
echo "Before Python"
python --version
/usr/bin/python --version
python somefile.py
which python
echo "After Python"

daemonize /path/to/daemonize_me.sh
Output

Before Python
/usr/bin/python
After Python

It looks like running script with daemonize skipping python instructions. Python is present in $PATH as well.

@random-user-00
Copy link

You need to provide full path of the python script somefile.py.

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

2 participants