RE: Run Shell Script Using Perl
From: ext-Chetak Sasalu (ext-Chetak.Sasalu_at_nokia.com)
Date: 12/10/04
- Next message: mgoland_at_optonline.net: "Re: looking a one liner "to return the value while clearing the argument""
- Previous message: Edward WIJAYA: "Re: looking a one liner "to return the value while clearing the argument""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 10 Dec 2004 16:16:23 +0100 To: <beginners@perl.org>
-----Original Message-----
From: ext Chris Devers [mailto:cdevers@pobox.com]
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: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org <http://learn.perl.org/> <http://learn.perl.org/first-response>
- Next message: mgoland_at_optonline.net: "Re: looking a one liner "to return the value while clearing the argument""
- Previous message: Edward WIJAYA: "Re: looking a one liner "to return the value while clearing the argument""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|