Re: [Bacula-users] Script for checking a client status

2009-04-30 Thread Personal Técnico
Hi, > Why not something like 'echo "sta client=$1" | bconsole -c ... | grep > -q ...' and check the return code? Much simpler and uses less resources. > executing it from command line (and from a script changing "client-fd" by $1 using Run Before Job = "/etc/bacula/scripts/check-status-client.

Re: [Bacula-users] Script for checking a client status

2009-04-28 Thread Arno Lehmann
Hi, 28.04.2009 13:37, Personal Técnico wrote: > Hi, > > I check a client status before run a job with this script, called > "check-status-client.sh": > > - > #! /bin/bash > bconsole < @output /var/log/bacula/$1 w Why not something like 'echo "sta client=$1"