Hello Monks,
I need to run a Perl script on windows. I have installed the compiler. Can someone please help me as I am still learning the code, below is the script which i need to run.
my @MEDIA; 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; push @MEDIA, $_; } } if(@MEDIA){ open(FF, "|/mailx -s 'Daily' mel.rupani@capgemini.com") or die $!; for (@MEDIA){ print FF $_ . "\n"; } close FF; }
In reply to Run Perl script in windows by mpatel1516
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |