There are times you run a command in cronjob in a specific interval. Let's say you run that command every hour.
If your command copies a huge file, or you are doing a heavy task that may take longer than 1 hour sometimes, then you need
command in your arsenal.
Sample
See more samples here:
- http://manpages.ubuntu.com/manpages/xenial/man1/run-one.1.html
#linux #cronjob #command #run_one #runone
If your command copies a huge file, or you are doing a heavy task that may take longer than 1 hour sometimes, then you need
run-one
command in your arsenal.
run-one:
run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg)Sample
run-one
command:run-one rsync -azP $HOME $USER@example.com:/srv/backup
See more samples here:
- http://manpages.ubuntu.com/manpages/xenial/man1/run-one.1.html
#linux #cronjob #command #run_one #runone
Ubuntu
Ubuntu Manpage:
run-one - run just one instance at a time of some command and unique set of arguments
run-one - run just one instance at a time of some command and unique set of arguments