Re: [Bacula-users] test script job

2019-04-10 Thread Martin Simmons
The difference might be something in the process's environment. Try printing the environment using /bin/env in the script to compare between the post job and other cases. You could also try using Bacula's bsmtp utility (or /bin/mail) instead of mutt. __Martin > On Wed, 10 Apr 2019 11:46:04

Re: [Bacula-users] test script job

2019-04-10 Thread Adam Weremczuk
Thanks Martin, it behaved just as you said. What I'm trying to troubleshoot is a post job script failing: 09-Apr 22:38 bacula_dir JobId 48848: AfterJob: /sent: Permission denied (errno = 13) 09-Apr 22:38 bacula_dir JobId 48848: AfterJob: Could not send the message. It was running fine for mon

Re: [Bacula-users] test script job

2019-04-10 Thread Martin Simmons
> On Wed, 10 Apr 2019 09:48:59 +0100, Adam Weremczuk said: > > Hi all, > > I'm running old Bacula 5.2.6 with LTO-4 tapes and trying to add a test > job that will execute a script from the director: > >  RunScript { > RunsWhen = after > RunsOnClient = no > Runs

[Bacula-users] test script job

2019-04-10 Thread Adam Weremczuk
Hi all, I'm running old Bacula 5.2.6 with LTO-4 tapes and trying to add a test job that will execute a script from the director:  RunScript { RunsWhen = after RunsOnClient = no RunsOnFailure = yes FailJobOnError = no Command = "/etc/bacula/scripts/t