Re: How to execute a perl script on remote host



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


"ColinQin ???
"
Hi All,

Now i have 2 servers A and B, A is a production server (the running web
app is writen with php) and B is a CVS server.

When i click a button in the running web app, i need to execute a perl
script on CVS server.

How can i do this?

Thanks

.


Quantcast