develooper Front page | perl.beginners | Postings from August 2003

RE: redirecting the output of a command to a file

Thread Previous | Thread Next
From:
Marcos.Rebelo
Date:
August 26, 2003 04:17
Subject:
RE: redirecting the output of a command to a file
Message ID:
A6B679E5336AD61194C10008C716162802F62D7E@ec9005.don.eurocopter.de
system("myCommand > myFile");
must work

-----Original Message-----
From: Ivan Novick [mailto:ivan.novick@makoglobal.com]
Sent: Tuesday, August 26, 2003 1:11 PM
To: beginners@perl.org
Subject: redirecting the output of a command to a file


Hi,

does anyone know syntax to run a command and redirect its output directly to
a file?

Equivalent to myCommand > myFile in shell

Thanks,

Ivan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About