Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

install cron into shell script

#!/bin/sh

sudo crontab -l > cron_bkp
sudo echo "0 10 * * * sudo /home/test.sh >/dev/null 2>&1" >> cron_bkp
sudo crontab cron_bkp
sudo rm cron_bkp
Source by fedingo.com #
 
PREVIOUS NEXT
Tagged: #install #cron #shell #script
ADD COMMENT
Topic
Name
6+9 =