Re: [Bacula-users] Job canceling tip
2013-03-04 04:59:47
On Mon, 4 Mar 2013 08:45:05 +0100
Geert Stappers <Geert.Stappers AT vanadgroup DOT com> wrote:
[...]
> Thank you for the tip. I want to share another.
> It is about canceling multiple jobs. Execute from shell
>
> for i in {17..21} ; do echo cancel yes jobid=404${i} | bconsole ;
> done
>
> Five jobs, 40417-40421, will be canceled.
A minor nitpick: the construct
for i in {17..21}; do ...
is a bashism [1], so it won't work in any POSIX shell.
A portable way to do the same is to use the `seq` program
for i in `seq 17 21`; do ...
or to maintain an explicit counter:
i=17
while [ $i -le 21 ]; do ...; i=$(($i+1)); done
1. http://www.google.com/search?q=bashism
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|