This question already has an answer here:
- My cron tasks report command not found 2 answers
I created a script which takes the IP configuration as input
ifconfig | /usr/bin/python "/home/michel/Python/sendIp.py"
When i type that in in the command prompt, the script gets executed well, and the result of the
ifconfig script is available in my script.
However, when I insert it in my cron (with crontab -e) like this, it does not read the
* * * * * ifconfig | /usr/bin/python "/home/michel/Python/sendIp.py"
The input is read in the script like this:
data = sys.stdin.read()