$bar=$ARGV[0]; $lak=system($bar); print $lak; #This will be captured by the system function in the PHP file. open FH,">> llll"; print FH $lak;