Advertisement
robn

tellme

May 13th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.26 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use warnings;
  4. use strict;
  5.  
  6. exit if @ARGV == 0;
  7.  
  8. my $rc = system @ARGV;
  9.  
  10. my $priority = $rc ? "critical" : "normal";
  11.  
  12. system "/usr/bin/notify-send -i stock_dialog-info -u $priority 'Job completed' '$ARGV[0] returned $rc'";
  13.  
  14. exit $rc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement