For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > November 2006 > Re: How to execute a perl script on remote host









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 Re: How to execute a perl script on remote host
Erwin Moller

2006-11-28, 7:58 am

ColinQin wrote:

> I found ssh2_exec() can help me to do this, but my php version is
> 4.3.9.
> It seems no ssh2_exec() support, is there any similiar method?


Hi,

Is ServerB running a webserver (Apache)?
In that case you can simply call some URL, and put the perlscript under it.

eg:

www.serverB.com/myPerl/myscript.pl

If some freak wants to tease you he can call that script too, so maybe add
an IP-restriction on it. If it is not coming from serverA, don't do a
thing.

I agree having ssh2_exec() would be a bit easier. :-)

Good luck

Regards,
Erwin Moller
[color=darkred]
>
> "ColinQin ???
> "

Sponsored Links







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

Copyright 2010 codecomments.com