Unable to execute python script through application which works and executes manually
Issue
- Prepared the script to start the application which is not working.
- But when the script was started manually, it is working.
- The command is
./host.py 9000 &
- Below is the script, which is not working
[root@localhost ~] # cat startKey.sh
#!/usr/bin/python
APP_DIR=/var/test
cd ${APP_DIR}
./host.py 9000 2>&1
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
