Help for this page

Select Code to Download


  1. or download this
    open STDOUT, "| /bin/gzip >| /logfile.gz";
    system("my command", "arg1", "arg2")
    
  2. or download this
    open STDOUT, "/logfile";
    system("my command", "arg1", "arg2")
    system("gzip","-f","/logfile");