Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
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 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