Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Kostis Fardelas
On 21 November 2016 at 15:58, Gary R. Schmidt wrote: > On 22/11/2016 00:40, Kostis Fardelas wrote: >> 755 and extension is not needed. I have a lot of other scripts that do >> not have extensions, but none that calls a secondary script with >> arguments >> >> On 21 November 2016 at 15:06, Francisc

Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Gary R. Schmidt
On 22/11/2016 00:40, Kostis Fardelas wrote: > 755 and extension is not needed. I have a lot of other scripts that do > not have extensions, but none that calls a secondary script with > arguments > > On 21 November 2016 at 15:06, Francisco Javier Funes Nieto > wrote: >> Permissions on the script f

Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Josh Fisher
On 11/21/2016 8:41 AM, Kostis Fardelas wrote: > $ICICMD has the full path. If I run the script from command line, the > script works. But if I let bacula run it, it throws a FATAL error. When the bacula-fd daemon launches your script, the script inherits its environment from the bacula-fd proces

Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Vanush
what happens if you change your script to be ICICMD=$(/usr/bin/which ici) or even better run "which which" on the command line and change ICICMD to match the output. Misha On Mon, Nov 21, 2016 at 03:41:01PM +0200, Kostis Fardelas wrote: > $ICICMD has the full path. If I run the script from comm

Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Kostis Fardelas
$ICICMD has the full path. If I run the script from command line, the script works. But if I let bacula run it, it throws a FATAL error. On 21 November 2016 at 15:06, Bill Arlofski wrote: > On 11/21/2016 07:37 AM, Kostis Fardelas wrote: >> Hello community, >> I am trying to run a script as a Clie

Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Kostis Fardelas
755 and extension is not needed. I have a lot of other scripts that do not have extensions, but none that calls a secondary script with arguments On 21 November 2016 at 15:06, Francisco Javier Funes Nieto wrote: > Permissions on the script file? > The file finish with .sh extension? > > J. > > >

Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Bill Arlofski
On 11/21/2016 07:37 AM, Kostis Fardelas wrote: > Hello community, > I am trying to run a script as a Client Run Before Job > > Client Run Before Job = "/etc/bacula/scripts/mysqlxtra_dt" > > The script: > #!/bin/sh > > ICICMD=$(which ici) > $ICICMD -dt 3600 -svc 'mysql-replication' > /dev/null >

Re: [Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Francisco Javier Funes Nieto
Permissions on the script file? The file finish with .sh extension? J. 2016-11-21 13:37 GMT+01:00 Kostis Fardelas : > Hello community, > I am trying to run a script as a Client Run Before Job > > Client Run Before Job = "/etc/bacula/scripts/mysqlxtra_dt" > > The script: > #!/bin/sh > > ICICMD=$

[Bacula-users] Fatal error when running script with arguments

2016-11-21 Thread Kostis Fardelas
Hello community, I am trying to run a script as a Client Run Before Job Client Run Before Job = "/etc/bacula/scripts/mysqlxtra_dt" The script: #!/bin/sh ICICMD=$(which ici) $ICICMD -dt 3600 -svc 'mysql-replication' > /dev/null But the job keeps failing with: "ClientRunBeforeJob: /etc/bacula/scr