Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Net::Telnet: remote job completion

by sundialsvc4 (Abbot)
on Feb 28, 2012 at 20:21 UTC ( [id://956754]=note: print w/replies, xml ) Need Help??


in reply to Net::Telnet: remote job completion

I am not certain that I fully understand your request.   It seems to me that what you are saying is that you would like to write a Perl script, running on the AIX host, which would invoke the several consecutive scripts in turn.   You would then invoke that Perl script by telnet’ing to the host and invoking it from the command line.   Is this what you have in mind?

If this is the case, it could be just as simple as using Perl’s qx// operator within that script.   (See: perldoc -f qx, then perldoc perlop.)   If all you want to do, truly, is to execute one subprocess after another in sequence, waiting for each one after the other to finish in its turn, then, “it’s just that simple.”

To summarize, my notion ... and it may or may not, on second glance, be what you are looking for so far ... presupposes that a single script be placed and executed upon that AIX box, which invokes the various parts in sequence.   There is no “puppet master” on the remote side.   All in all, this seems to me to be considerably simpler.

Replies are listed 'Best First'.
Re^2: Net::Telnet: remote job completion
by maskull (Novice) on Feb 29, 2012 at 13:45 UTC
    I'm running the Perl script from MS Win 2003 server. It telnets to AIX box on which I have no admin/root privileges - all I can do is run the scripts. It's pretty safe to assume the admin wouldn't like my putting my own scripts next to his toys.

      Perhaps it would be entirely appropriate to ask.   There are no special privileges required to run such a program on that box, although of course you might not yourself have the privileges needed to put them there.   (On the other hand, setting up an ordinary user-account there for you to put your scripts in might be “sure, no problem.”   There are, after all, no elevated privileges required to do any of this.)   It might well be argued that the impact on his system would be significantly less, and so he might well think that it’s a great idea.   (It would also be less troublesome and therefore would require less technical-support effort on the part of himself or his staff, versus any sort of Rube Goldberg contraption.)   Perhaps he will come back with a totally different idea (Tivoli?) that you had never even thought of.   Maybe his department isn’t aware that your department’s requirement exists.   Many a time a group who runs an internal computer service does not know everything about how other departments have contrived to use it ... especially if they are seen by others as being technically or politically unapproachable.

      In short, I wouldn’t avoid asking (or, as the case may be, suggesting that your manager do so), merely on the assumption that you know what the answer would be ... just sayin’.

      And of course, heck, yeah... well do I know how strange and squirrely corporate politics can sometimes be, and about the strangest most irrelevant things.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://956754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found