Code:
@reboot ping google.com #plus redirecting the errors to a file
After adaptation, line might look like that (untested)
Code:
@reboot ping google.com > /home/pi/googleRedirected.log 2>&1
BTW I would be very surprised if lines of python could execute from crontab (even one line)! . crontab can execute scripts like that:
Code:
#!/usr/bin/python3 # untested # this would be in a executable file lots of python lines
Code:
#!/usr/bin/bash bash_command > /home/pi/bash_command.log 2>&11/usr/bin/python3 full/path/python_script.py > python_command.log 2>&1
Statistics: Posted by dbrion1 — Tue Mar 19, 2024 5:13 pm