Solved

Script Execution at another domain

Posted on 1998-11-05
2
237 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Perl for loop for 2000 ms 7 111
Using Perl to parse rows 7 107
Perl string replace for refred url 9 72
PERL variable conundrum 9 96
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…

740 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