Hi,
I'm try to get my Networker server (7.1.2) to execute a perl script when it has finished backing up a savegroup. To do this I've set up a notification (event=savegroup, priority=notice) that has the following action "/usr/bin/perl /usr/local/nsrscripts/initclone.pl". When I ran a backup on a group however, it does not seem like this script gets executed.
Currently, just for testing purposes, the script just dumps whatever is in STDIN to a file:
#!/usr/bin/perl
$report = <STDIN>;
open (REPORT, '>/usr/local/nsrscripts/report.txt') or die "Couldn't create file: $!\n";
print REPORT "$report\n";
close REPORT;
When I run this script from the command line, it creates the file with whatever I put in STDIN. However, no file is created when Networker performs a backup. If I change the action of the notification to "cat>/usr/local/nsrscripts/report.txt" the file is created.
I've set the permissions wide open on the script and the directory it's in.
Any thoughts?
--
Brian Kunst
Asst. Systems Administrator
Pacific Lutheran University
I'm try to get my Networker server (7.1.2) to execute a perl script when it has finished backing up a savegroup. To do this I've set up a notification (event=savegroup, priority=notice) that has the following action "/usr/bin/perl /usr/local/nsrscripts/initclone.pl". When I ran a backup on a group however, it does not seem like this script gets executed.
Currently, just for testing purposes, the script just dumps whatever is in STDIN to a file:
#!/usr/bin/perl
$report = <STDIN>;
open (REPORT, '>/usr/local/nsrscripts/report.txt') or die "Couldn't create file: $!\n";
print REPORT "$report\n";
close REPORT;
When I run this script from the command line, it creates the file with whatever I put in STDIN. However, no file is created when Networker performs a backup. If I change the action of the notification to "cat>/usr/local/nsrscripts/report.txt" the file is created.
I've set the permissions wide open on the script and the directory it's in.
Any thoughts?
--
Brian Kunst
Asst. Systems Administrator
Pacific Lutheran University