I'm on Freebsd9.2.(I have to use this operating system) I want to run multiple scripts with at command but I want to ignore running a script in a same time.
For example: I have 3 script files: 1.sh, 2.sh, 3.sh
I have a job to execute 1.sh at today 16:20, when I run the at command with the same time and script, the number of the jobs in /var/at/jobs changed to 2 jobs. I want to ignore this, but the script 2.sh can run with thw same time. Do you have any idea what should I do?
I don't know if I understood correctly the problem, but maybe the command lockf could help.
For example try this in one terminal:
In another terminal run:
In this example until the command
sleep 5doesn't exit, if you try to run another command you will get something like:A
cronexample:This prevents running the script/app if the lock exists, so probably you can get an idea of how you could use it with
at