home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!mcsun!chsun!bernina!neptune!weingart
- From: weingart@inf.ethz.ch (Tobias Weingartner)
- Subject: Remote Perl
- Message-ID: <1992Nov13.143450.16050@neptune.inf.ethz.ch>
- Followup-To: comp.lang.perl
- Keywords: remote, in.perld
- Sender: news@neptune.inf.ethz.ch (Mr News)
- Nntp-Posting-Host: tau.inf.ethz.ch
- Reply-To: weingart@inf.ethz.ch
- Organization: ETH - Switzerland
- Date: Fri, 13 Nov 1992 14:34:50 GMT
- Lines: 67
-
-
- Hello.
-
- Perl is great, Perl is cool, but remote it's just no tool...
-
- Well, something like that anyways. I have run into a small
- problem. When my perl scripts want to execute some 'thing'
- (make that a perl subroutine) on another machine, things are
- not very rosy. Frist of all, the rsh method leaves many
- things to be desired, security not withstanding.
-
- Going on my usual long trip home, I was thinking to myself.
- Why not use RPC? Well, why not? Of course, after thinking
- about it at length, and drawing out some pictures, I found
- that this is quite unuseable.
-
- Here is how far I have gotten:
-
- Make another subroutine in perl:
-
- remote ;
- remote EXPR ;
- remote( EXPR );
-
- Where EXPR would be ($machine, $subroutine, @args). Of course,
- remote would return whatever $subroutine @ $machine happened to
- return.
-
- First problem. Which *&^@#$* script would the RPC routine
- execute? Well, I was hashing with this for a while, until I
- thought of:
-
- Why not make the in.perld (or whatever) require ~/.perldrc,
- and the do eval "\&$subroutine(\@args)";?
-
- Each user could then have their own ~/.perldrc, which could
- require needed files, do things, etc...
-
-
- While we are on the topic, how about a gethostname call?
- I really hate to put:
-
- chop($host = `hostname`);
-
- into every script that I write.
-
-
- Well, enough talk. If anyone is interested in this, tell
- me, and I'll see what I can do in the way of source code.
-
- --Toby.
-
- --
-
- ***************************************************************
- * Tobias Weingartner * Not every man is willing to die... *
- * c/o Bruno Opprecht * Some have to be PUSHED out the window *
- * Oberdierikoner st.7 * ------------------------------------- *
- * 6030 Ebikon Luzern * ...This space for rent... *
- * SWITZERLAND * ...This space for rent... *
- ***************************************************************
- * +41'041'33'25'40 * ..Midnight the fading, blue Wizrd.. *
- ***************************************************************
- SYSTEM-F-ANARCHISM, the operating system has been overthrown
-
- PGP2.0 Public Key available at 'finger weingart@tau.inf.ethz.ch'
-
-