New answers tagged at
According to the documentation on PHP exec(): If the output argument is present, then the specified array will be filled with every line of output from the command. Does your version of at declare the job number? $ echo /bin/true | at now + 1hour job 1 at Fri Apr 24 12:00:00 2015 If so, you might then use explode() with a space delimiter to get the ...
This removes the first 5, so is wrong, if you can findout how to do an inverted head (remove head), then you will have the answer. A combination of wc and tail may do it. atq | sort -g | head -5 | cut -f1 | xargs atrm Correct answer atq | sort -g | tail -n +6 | cut -f1 | xargs atrm
On my Debian system, at sorts jobs by the time they are scheduled to start and not the order they were given to at in: $ for i in 10 20 30 40 50 60 70; do at now + "$i" min < scripts/foo.sh; sleep 1; done warning: commands will be executed using /bin/sh job 8 at Sat Apr 18 15:31:00 2015 warning: commands will be executed using /bin/sh job 9 at Sat ...
Top 50 recent answers are included