diff options
Diffstat (limited to 'test/bbackupd/testfiles/notifyscript.pl.in')
-rwxr-xr-x | test/bbackupd/testfiles/notifyscript.pl.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/bbackupd/testfiles/notifyscript.pl.in b/test/bbackupd/testfiles/notifyscript.pl.in new file mode 100755 index 00000000..d3e324e9 --- /dev/null +++ b/test/bbackupd/testfiles/notifyscript.pl.in @@ -0,0 +1,24 @@ +#!@TARGET_PERL@ + +my $f = 'testfiles/notifyran.'.$ARGV[0].'.'; + +if (-e 'testfiles/notifyscript.tag') +{ + open FILE, '< testfiles/notifyscript.tag' or die $!; + my $tag = <FILE>; + chomp $tag; + $f .= "$tag."; + close FILE; +} + +my $n = 1; + +while(-e $f.$n) +{ + $n ++; +} + +open FL,'>'.$f.$n; +print FL localtime(); +close FL; + |