Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- use warnings;
- use strict;
- exit if @ARGV == 0;
- my $rc = system @ARGV;
- my $priority = $rc ? "critical" : "normal";
- system "/usr/bin/notify-send -i stock_dialog-info -u $priority 'Job completed' '$ARGV[0] returned $rc'";
- exit $rc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement