Solved

Script Execution at another domain

Posted on 1998-11-05
2
226 Views
Last Modified: 2010-03-04

How can I execute a script on another machine?

I need this to keep 2 identical passwordfiles on 2 different
machines accurate.

1. The snippet should connect to the following url
   http://www.2domain.com/script.cgi?username=A&password=B

2. If for any reason the server is not reachable, the script should stop
if .....?

print "Please try again in a few minutes";
exit;

 (to prevent any change to the local passwordfile)



if connection failed


0
Comment
Question by:Bigi
2 Comments
 

Accepted Solution

by:
hedj earned 100 total points
ID: 1206010
I'm not sure if this is so much a Perl question but a UNIX question.  To perform remote commands you need to use the rsh command.  Make sure that on your remote server you are accepting remote commands.  To do this from within perl, you can do something like this:


$command="rsh userid@domain <command>";
$results = qx{ $command };


0
 

Author Comment

by:Bigi
ID: 1206011
I get "select: protocol failure in circuit setup"
Does it not need the password for the remote host?

Or how can I call the script by http? (linux is not installed
on my server)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question