Solved

Script Execution at another domain

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now