Solved

Script Execution at another domain

Posted on 1998-11-05
2
231 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
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…

685 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