for (qx<sudo /usr/openv/netbackup/bin/admincmd/bpimagelist -A -media - +hoursago 24>){ s/\|/ /; my ($Image) = split; for (qx<sudo /usr/openv/netbackup/bin/admincmd/nbemmcmd -listmedia - +mediaid $Image>){ next unless m/Media ID|Data Expiration/i; qx<echo \"$_\" | mailx -s "Daily" ishonbackup.nar@capgemini.com>; } }
"Think of how stupid the average person is, and realize half of them are stupider than that." - George Carlin
In reply to Re: Shell script to Perl
by NetWallah
in thread Shell script to Perl
by ansh_1415
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |