-----Original Message-----
From: ext Chris Devers [mailto:[EMAIL PROTECTED]
Sent: Friday, 10. December 2004 15:58
To: roime puniran
Cc: Perl Beginners List
Subject: Re: Run Shell Script Using Perl


On Fri, 10 Dec 2004, roime puniran wrote:

> I have a linux shell script used to transfer files
> into the other machine and i need PERL running my
> script..
> How can i do that?..did some one know?
 
You need to rewrite a shell script that does file transfer in Perl?

Ok, Perl can do that.

How are you trying to transfer the files? There are a lot of ways that 
would work -- ftp, scp, rsync, cp over NFS mount (or SMB mount, or DAV 
mount, or...), etc. We need to know what options to go with.

If the shell script isn't very long, can you paste it in a message to 
the list? If it is long, can you paste a section with the parts you need 
to rewrite in Perl?

Out of curiosity, if the shell script works, why rewrite it? I like Perl 
and all, but not to the point that every perfectly good script in some 
other language needs to be rewritten in Perl...


I think he wants to call the shell script from a different perl script.
qx( shell script which does ftp)

right ?

Chetak


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to