HTH, Joostopen CMD,"|prog.exe >out.log" or die "$!"; print CMD "stuff"; close CMD; open LOG,"<out.log" or die "$!" while (<LOG>) { process($_); } close LOG;
-- #!/usr/bin/perl -w use strict;$;= ";Jtunsitr pa;ngo;t1h\$e;r. )p.e(r;ls ;h;a;c.k^e;rs ";$_=$;;do{$..=chop}while(chop);$_=$;;eval$.;
In reply to Re: write to cmd and save output
by Joost
in thread write to cmd and save output
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |