On Wed, 11 Jul 2001 [EMAIL PROTECTED] wrote:
> > Of course, I could easily be wrong. Enlighten me, Jeff... :)
>
> I am not enlightened... how could I hope to enlighten you? :)
But you can *juggle*! Surely a man who can juggle is at one with the
universe and will be kind enough to ease my poor feeble mind.
> I can suggest you read what I wrote again, though. I didn't say "use IPC",
> though putting information in a file for the parent to pick up might be
> construed as a primitive form of IPC. Perl is certainly capable of most
> forms of IPC, but I am not enough of a shell wizard to suggest how the
> other end of that communication would work. I did suggest that using files
> with predetermined uses might not be a good idea for communicating between
> a child and a parent, in the general case.
Maybe I should have explained myself. A point I realized but didn't
mention was that all the IPC techniques (including shared files, which I
agree may not be such a hot idea) that I personally am aware of :) have the
same problem: no chance, AFAIK, for communication to get set up on the
parent (shell) end. I treated the more general case of IPC between shell
and Perl script rather than the more specific case of shared files not--as
far as I am aware, anyway--out of misunderstanding of what you wrote, but
because the same problem is present in the general case.
> Scenario: Perl script touches temporary file (to reserve it), passes it to
> script. Script accepts communication filename as argument, writes
> suggested changes to temporary file as VAR=VALUE pairs. Perl notes
> successful return from script, reads file, and splits the pairs and
> hashes them into %ENV.
Wouldn't that only change the environment variables in the process running
the first Perl script?
> the actual circumstances and your cleverness. I don't claim to be clever,
> though... this stuff is a continuing learning experience.
No kidding... :)
--nicole twn
***
"This is my home. This is my only home. This is the only sacred ground
that I have ever known."--Dave Carter & Tracy Grammer
Visit Nicolopolis! http://wwwcsif.cs.ucdavis.edu/~carlsonn
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]