activeperl@listserv.ActiveState.com
[Top] [All Lists]

Re: To Run System Command

Subject: Re: To Run System Command
From: "Murugavel Chidambaram"
Date: Fri, 4 Mar 2005 15:56:15 +0900
Hi,

Try this way,

my $my_dir = 'home/your_dir';

`cd $your_dir`;
`dir *.txt /b > a.dat`;


Regards

C.M





Satish.Waghmare@xxxxxxxxxxxxx
Sent by: activeperl-bounces@xxxxxxxxxxxxxxxxxxxxxxxx
03/04/2005 03:43 PM
 
        To:     activeperl-bounces@xxxxxxxxxxxxxxxxxxxxxxxx
        cc:     activeperl@xxxxxxxxxxxxxxxxxxxxxxxx
        Subject:        To Run System Command


Hi :
 
I'm using ActiveState PERL 5.8 on Windows Platform.
 
I want to know about How to run a DOS command through a PERL script.
I want to run a below DOS commmand and then read the result from the file 
it has created.
Command--     dir *.txt /b > a.dat
Kindly please help me.
Thank You
Regards
~Satish
 
 _______________________________________________
ActivePerl mailing list
ActivePerl@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________________________________
ActivePerl mailing list
ActivePerl@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

<Prev in Thread] Current Thread [Next in Thread>