This is going to be an example of how to start a bash script on boot in Linux as a user with Webmin and Cron.
Go to Webmin>System>Scheduled Cron Jobs. Click on Create new Scheduled Cron Jobs.
this in the command:
su - backup -c /home/backup/scripts/logtempstoweb.sh &
Note: backup is the name of the user in this example.
Go to Webmin>System>Scheduled Cron Jobs. Click on Create new Scheduled Cron Jobs.
this in the command:
su - backup -c /home/backup/scripts/logtempstoweb.sh &
Note: backup is the name of the user in this example.
No comments:
Post a Comment