Bacula-users

Re: [Bacula-users] Cancel Multiple Jobs

2011-06-15 02:20:39
Subject: Re: [Bacula-users] Cancel Multiple Jobs
From: Jan Behrend <jbehrend AT mpifr-bonn.mpg DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 15 Jun 2011 07:58:55 +0200
On 06/14/11 21:17, Rodrigo Ferraz wrote:
> Hello
> 
>  
> 
> Is there a way to cancel multiple running Jobs with bconsole?

Hi,

here is another one using the shell:

for fn in $(echo "s dir" | bconsole | awk '/waiting/ {print $1}') ; do
echo "cancel jobid=$fn" ; done | bconsole

This cancels all waiting jobs.

There is no limit choosing jobs using regex.

Cheers Jan

-- 
MAX-PLANCK-INSTITUT fuer Radioastronomie
Jan Behrend - Rechenzentrum
----------------------------------------
Auf dem Huegel 69, D-53121 Bonn
Tel: +49 (228) 525 359, Fax: +49 (228) 525 229
jbehrend AT mpifr-bonn.mpg DOT de http://www.mpifr-bonn.mpg.de

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>