473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to execute a perl script on remote host

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

Nov 28 '06 #1
2 3957
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?

"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
Nov 28 '06 #2
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
Nov 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: blob | last post by:
Hi all, Below is my script that will be used to connect to a remote host and change my password automatically: =========================================== #!/usr/bin/perl use strict();
3
by: blob | last post by:
Hi all, Below is my script that will be used to connect to a remote host and change my password automatically: =========================================== #!/usr/bin/perl use strict();
14
by: Pascal Damian | last post by:
My HTML pages have a <SCRIPT SRC=http://remote/script> at the top'ish of each page. Sometimes the remote host (probably due to heavy load or flaky network connectivity) doesn't respond for a long...
1
by: vijay | last post by:
hai guys.. I have a problem..I need to shutdown the database from perl script. I was trying through connect(), execute(), prepare()..But some how I am getting error as Invalid sql statement.. I...
1
by: Balajisanthanakrishnan | last post by:
Old Title: Hi all, need help for this perl script- thanks in advance I am BalajiSanthanakrishnan, chennai. Now I am working in a Perl Script which is executing in the Unix Servers. Basically i am...
23
by: ticfranca | last post by:
Hi, I'm getting this error in the code below: sub Pega_recorde { $database = 'bundinha'; $host = 'localhost'; $usuario = 'myhumoradm'; $senha = 'my8xr2d2'; ...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
shrek123
by: shrek123 | last post by:
Hi, I am in a big mess. I have to execute command on remote machine using perl script. I have used INET Socket module to do this operation. Following is the code snipet. use IO::Socket;
0
by: cheguvera | last post by:
Hi All, I want to have a Perl script which will act as HTTP client. Basically, it should be able to get (read) a given HTML page from server. I have this code with me, #...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.