- or download this
#!/usr/bin/perl -w
#exec /usr/bin/perl /research-sar/sarexec.pl
use strict;
- or download this
#!/usr/bin/perl
use strict;
use warnings;
- or download this
if($ARGV[0] eq 'start')
{
...
exit;
}
- or download this
my %action=(start => \&start, stop => \&stop);
my $todo=shift || '';
...
my ($file_param,$file_location,$interval)=@ARGV;
# ...
}
- or download this
open(FH,"> fileloc") or die"cant open the file";
- or download this
open my $fh, '>', 'fileloc' or die "Can't open `fileloc': $!\n";
- or download this
my $pid = fork();