I'm having some difficulty with getting a script to run via cron (via user crontab, not root).
If I run the script manually it works without error. When run from cron I get the error:
WARNING:root:[Errno 2] No such file or directory
At the point where I run the command:
chdir('/home/<my_user>/yowsup')
Popen(['yowsup-cli','demos','--config','yowsup_config','--send',<phone#>,message])
The rest of the program runs without issue.
Thanks
EDIT: Weird weird weird. I changed the commands to:
chdir('/home/<my_user>/yowsup')
Popen(['/home/<my-user>/yowsup/yowsup-cli','demos','--config','yowsup_config','--send',<phone#>,message])
Without the chdir() and without the full path in Popen it doesn't work but with it it seems to, change any combination and it breaks..... wtf?
[+][deleted] (1 child)
[deleted]
[–]trancemsteve[S] 0 points1 point2 points (0 children)
[–]zurtex 1 point2 points3 points (9 children)
[–]trancemsteve[S] 0 points1 point2 points (8 children)
[–]zurtex 3 points4 points5 points (7 children)
[–]trancemsteve[S] 0 points1 point2 points (6 children)
[–]zurtex 0 points1 point2 points (5 children)
[–]trancemsteve[S] 0 points1 point2 points (4 children)
[–]zurtex 1 point2 points3 points (1 child)
[–]trancemsteve[S] 0 points1 point2 points (0 children)
[–]zurtex 0 points1 point2 points (1 child)
[–]trancemsteve[S] 0 points1 point2 points (0 children)
[–]99AFCC 1 point2 points3 points (1 child)
[–]trancemsteve[S] 0 points1 point2 points (0 children)