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

2008-11-09 Thread Hemant Shah
--- On Sun, 11/9/08, Timo Neuvonen <[EMAIL PROTECTED]> wrote: > From: Timo Neuvonen <[EMAIL PROTECTED]> > Subject: Re: [Bacula-users] Passing volume name to run before script. > To: bacula-users@lists.sourceforge.net > Date: Sunday, November 9, 2008, 6:30 AM > &quo

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

2008-11-09 Thread Timo Neuvonen
"Hemant Shah" <[EMAIL PROTECTED]> kirjoitti viestissä news:[EMAIL PROTECTED] > > 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. > > What am I doing wrong? > I think I've sometim

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

2008-11-08 Thread Hemant Shah
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