|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Jobs to be executed can be listed with
$ atq but that don't tell me what the job/command to be executed _is_. I can get that with $ at -c 'job-number from the atq-command' but only for each line at a time. I'd like to have one command that gives a lists like i.e: ... 8 2008-03-30 23:00 mv file file2 9 2008-03-30 23:00 cp img img2 ... and I'm surprised that I can't find one. If it really don't exist, I'm shure some of you can make a script to do it! -- Salve |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
The carbonbased lifeform Salve Håkedal inspired comp.unix.shell with:
> Jobs to be executed can be listed with > $ atq > but that don't tell me what the job/command to be executed _is_. > I can get that with > $ at -c 'job-number from the atq-command' > but only for each line at a time. > > I'd like to have one command that gives a lists like i.e: > .. > 8 2008-03-30 23:00 mv file file2 > 9 2008-03-30 23:00 cp img img2 > .. > and I'm surprised that I can't find one. > If it really don't exist, I'm shure some of you can make a script to do > it! #v+ for i in $(atq|cut -f1); do echo -n $(atq $i|cut -d" " -f1-2) echo " "$(at -c $i|tail -2) done #v- 8 2008-03-24 12:18 touch attest2 7 2008-03-24 12:18 touch attest1 9 2008-03-24 12:18 touch attest3 Theo -- theo at van-werkhoven.nl ICQ:277217131 SuSE Linux linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB "ik _heb_ niets tegen Microsoft, ik heb iets tegen de uitwassen *van* Microsoft" |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On 2008-03-24, Theo v. Werkhoven <theo@van-werkhoven.nl.invalid> wrote:
> The carbonbased lifeform Salve Håkedal inspired comp.unix.shell with: >> Jobs to be executed can be listed with >> $ atq >> but that don't tell me what the job/command to be executed _is_. >> I can get that with >> $ at -c 'job-number from the atq-command' >> but only for each line at a time. >> >> I'd like to have one command that gives a lists like i.e: >> .. >> 8 2008-03-30 23:00 mv file file2 >> 9 2008-03-30 23:00 cp img img2 >> .. >> and I'm surprised that I can't find one. >> If it really don't exist, I'm shure some of you can make a script to do >> it! > > #v+ > for i in $(atq|cut -f1); do > echo -n $(atq $i|cut -d" " -f1-2) > echo " "$(at -c $i|tail -2) > done > #v- > > 8 2008-03-24 12:18 touch attest2 > 7 2008-03-24 12:18 touch attest1 > 9 2008-03-24 12:18 touch attest3 > > Theo Nice. Thank you! -- Salve |
|
![]() |
| Outils de la discussion | |
|
|