Bacula-users

[Bacula-users] Passing volume name to run before script.

2008-11-08 23:58:14
Subject: [Bacula-users] Passing volume name to run before script.
From: Hemant Shah <hjrrs AT yahoo DOT com>
To: baculausers <bacula-users AT lists.sourceforge DOT net>
Date: Sat, 8 Nov 2008 20:55:39 -0800 (PST)
Folks,

I have following in my job description:

RunAfterJob = "/usr/local/etc/ChangeTapeStatusToUsed %v"

but when the script is executed it does not get the volume name.

Here is the part of the script.

#!/bin/ksh

if (( $# != 1 ))
then
   print "ERROR: Volume name not specified"
   exit 1
else
   Volume=$1
fi


Here is the error message I get:

08-Nov 16:53 lidp11-dir JobId 2835: AfterJob: ERROR: Volume name not specified  


What am I doing wrong?



Hemant Shah
E-mail: hjrrs AT yahoo DOT com


      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>