For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2007 > how to run a script at remote location (windows-->linux)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to run a script at remote location (windows-->linux)
Nandakishore Saboo

2007-12-26, 7:59 am

Hi,

I would like to run perl script on linux machine from windows perl script.
Can any body help me out on this regard, is there any module which takes
care of this?

Thanks,
snanda.

Tom Phoenix

2007-12-26, 7:01 pm

On Dec 26, 2007 3:08 AM, nandakishore saboo <nandakishoresaboo@gmail.com> wrote:

> I would like to run perl script on linux machine from windows perl script.


The most common way that people do that is when the Linux box is
running a webserver (such as Apache) which in turn runs a CGI program
written in Perl. Even if that isn't exactly what you're talking about,
could that be a way to do what you're looking for?

http://learn.perl.org/faq/beginners-cgi.html

It's certainly easier to leverage an existing service (in this case,
the http service) than to roll your own from scratch.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training
Chas. Owens

2007-12-26, 7:01 pm

On Dec 26, 2007 11:21 AM, Tom Phoenix <tom@stonehenge.com> wrote:
> On Dec 26, 2007 3:08 AM, nandakishore saboo <nandakishoresaboo@gmail.com> wrote:
>
>
> The most common way that people do that is when the Linux box is
> running a webserver (such as Apache) which in turn runs a CGI program
> written in Perl. Even if that isn't exactly what you're talking about,
> could that be a way to do what you're looking for?

snip

That's funny, I would have said the most common way to run a script
remotely would be either Net::Telnet or Net::SSH (with a preference
for Net::SSH). With CGI you need to use some form of authentication
(either roll your own or find a module) or anyone can run your script
remotely.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com