|
From: <ma...@eh...> - 2005-02-21 19:24:55
|
Thanks for the replies - I knew about the $host, and that is what I want
evenutally, but there is something else stopping this from working. Even when I
put in the full path, this does not work. Like I said before, I can run the
alert_user.sh from the command line as the backuppc user and it works just like
it should - I immediatly get a popup with the correct message.
Has anybody been able to make this work?
Thanks -
Matk
Quoting Craig Barratt <cba...@us...>:
> ma...@eh... writes:
>
> > Trying to send the user a popup message that a backup is about to start, I
> put
> > this line in my conf.pl:
> >
> > $Conf{DumpPreUserCmd} = 'alert_user.sh';
>
> You need an explicit path:
>
> $Conf{DumpPreUserCmd} = '/bin/alert_user.sh';
>
> Note that you can also pass the host name so that your script
> can do the right thing for different hosts, eg:
>
> $Conf{DumpPreUserCmd} = '/bin/alert_user.sh $host';
>
> Craig
>
|