Remove all `at` jobs
Clash Royale CLAN TAG#URR8PPP
up vote
26
down vote
favorite
I know that to remove a scheduled at
job I have to use atrm "numjob1 numjob2"
, but is there an easy way to do that for all the jobs?
command-line at
add a comment |Â
up vote
26
down vote
favorite
I know that to remove a scheduled at
job I have to use atrm "numjob1 numjob2"
, but is there an easy way to do that for all the jobs?
command-line at
add a comment |Â
up vote
26
down vote
favorite
up vote
26
down vote
favorite
I know that to remove a scheduled at
job I have to use atrm "numjob1 numjob2"
, but is there an easy way to do that for all the jobs?
command-line at
I know that to remove a scheduled at
job I have to use atrm "numjob1 numjob2"
, but is there an easy way to do that for all the jobs?
command-line at
command-line at
edited Aug 25 '16 at 11:09
Jeff Schaller
34.2k951113
34.2k951113
asked Oct 28 '12 at 20:20
robob
233135
233135
add a comment |Â
add a comment |Â
5 Answers
5
active
oldest
votes
up vote
27
down vote
accepted
You can run this command to remove all the jobs at the atq
for i in `atq | awk 'print $1'`;do atrm $i;done
1
variation on this answerat -l | awk 'printf "%s ", $1' | xargs atrm
â Sergiy Kolodyazhnyy
Apr 24 '15 at 10:11
add a comment |Â
up vote
10
down vote
You could do something like this:
for i in $(atq | cut -f 1); do atrm $i; done
In FreeBSD it'scut -f3
First column is date
â David Jashi
Oct 26 '14 at 9:51
add a comment |Â
up vote
5
down vote
This seems to me a short line:
atrm $(atq | cut -f1)
add a comment |Â
up vote
2
down vote
For more AIX 6 systems you can simply do:
atrm -
Ref: http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds1%2Fatrm.htm
add a comment |Â
up vote
0
down vote
Here is my xargs version that avoids braces and is hopefully intuitive:
atq | cut -f 1 | xargs atrm
You can also grep specific jobs by timestamp/userid and then remove them:
atq | grep "2018-10-22 16:" | cut -f 1 | xargs atrm
New contributor
add a comment |Â
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
27
down vote
accepted
You can run this command to remove all the jobs at the atq
for i in `atq | awk 'print $1'`;do atrm $i;done
1
variation on this answerat -l | awk 'printf "%s ", $1' | xargs atrm
â Sergiy Kolodyazhnyy
Apr 24 '15 at 10:11
add a comment |Â
up vote
27
down vote
accepted
You can run this command to remove all the jobs at the atq
for i in `atq | awk 'print $1'`;do atrm $i;done
1
variation on this answerat -l | awk 'printf "%s ", $1' | xargs atrm
â Sergiy Kolodyazhnyy
Apr 24 '15 at 10:11
add a comment |Â
up vote
27
down vote
accepted
up vote
27
down vote
accepted
You can run this command to remove all the jobs at the atq
for i in `atq | awk 'print $1'`;do atrm $i;done
You can run this command to remove all the jobs at the atq
for i in `atq | awk 'print $1'`;do atrm $i;done
answered Oct 28 '12 at 20:34
pradeepchhetri
6,11583254
6,11583254
1
variation on this answerat -l | awk 'printf "%s ", $1' | xargs atrm
â Sergiy Kolodyazhnyy
Apr 24 '15 at 10:11
add a comment |Â
1
variation on this answerat -l | awk 'printf "%s ", $1' | xargs atrm
â Sergiy Kolodyazhnyy
Apr 24 '15 at 10:11
1
1
variation on this answer
at -l | awk 'printf "%s ", $1' | xargs atrm
â Sergiy Kolodyazhnyy
Apr 24 '15 at 10:11
variation on this answer
at -l | awk 'printf "%s ", $1' | xargs atrm
â Sergiy Kolodyazhnyy
Apr 24 '15 at 10:11
add a comment |Â
up vote
10
down vote
You could do something like this:
for i in $(atq | cut -f 1); do atrm $i; done
In FreeBSD it'scut -f3
First column is date
â David Jashi
Oct 26 '14 at 9:51
add a comment |Â
up vote
10
down vote
You could do something like this:
for i in $(atq | cut -f 1); do atrm $i; done
In FreeBSD it'scut -f3
First column is date
â David Jashi
Oct 26 '14 at 9:51
add a comment |Â
up vote
10
down vote
up vote
10
down vote
You could do something like this:
for i in $(atq | cut -f 1); do atrm $i; done
You could do something like this:
for i in $(atq | cut -f 1); do atrm $i; done
answered Oct 28 '12 at 20:29
DaveEmme
346125
346125
In FreeBSD it'scut -f3
First column is date
â David Jashi
Oct 26 '14 at 9:51
add a comment |Â
In FreeBSD it'scut -f3
First column is date
â David Jashi
Oct 26 '14 at 9:51
In FreeBSD it's
cut -f3
First column is dateâ David Jashi
Oct 26 '14 at 9:51
In FreeBSD it's
cut -f3
First column is dateâ David Jashi
Oct 26 '14 at 9:51
add a comment |Â
up vote
5
down vote
This seems to me a short line:
atrm $(atq | cut -f1)
add a comment |Â
up vote
5
down vote
This seems to me a short line:
atrm $(atq | cut -f1)
add a comment |Â
up vote
5
down vote
up vote
5
down vote
This seems to me a short line:
atrm $(atq | cut -f1)
This seems to me a short line:
atrm $(atq | cut -f1)
edited Jul 28 '14 at 19:50
Networker
5,83993867
5,83993867
answered Jul 28 '14 at 19:19
user78969
5111
5111
add a comment |Â
add a comment |Â
up vote
2
down vote
For more AIX 6 systems you can simply do:
atrm -
Ref: http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds1%2Fatrm.htm
add a comment |Â
up vote
2
down vote
For more AIX 6 systems you can simply do:
atrm -
Ref: http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds1%2Fatrm.htm
add a comment |Â
up vote
2
down vote
up vote
2
down vote
For more AIX 6 systems you can simply do:
atrm -
Ref: http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds1%2Fatrm.htm
For more AIX 6 systems you can simply do:
atrm -
Ref: http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds1%2Fatrm.htm
answered Sep 3 '13 at 2:35
Craig
1213
1213
add a comment |Â
add a comment |Â
up vote
0
down vote
Here is my xargs version that avoids braces and is hopefully intuitive:
atq | cut -f 1 | xargs atrm
You can also grep specific jobs by timestamp/userid and then remove them:
atq | grep "2018-10-22 16:" | cut -f 1 | xargs atrm
New contributor
add a comment |Â
up vote
0
down vote
Here is my xargs version that avoids braces and is hopefully intuitive:
atq | cut -f 1 | xargs atrm
You can also grep specific jobs by timestamp/userid and then remove them:
atq | grep "2018-10-22 16:" | cut -f 1 | xargs atrm
New contributor
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Here is my xargs version that avoids braces and is hopefully intuitive:
atq | cut -f 1 | xargs atrm
You can also grep specific jobs by timestamp/userid and then remove them:
atq | grep "2018-10-22 16:" | cut -f 1 | xargs atrm
New contributor
Here is my xargs version that avoids braces and is hopefully intuitive:
atq | cut -f 1 | xargs atrm
You can also grep specific jobs by timestamp/userid and then remove them:
atq | grep "2018-10-22 16:" | cut -f 1 | xargs atrm
New contributor
New contributor
answered 7 mins ago
Thyag
1012
1012
New contributor
New contributor
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f53144%2fremove-all-at-jobs%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password