Help for this page

Select Code to Download


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