Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: setting up a csh from perl

by rir (Vicar)
on Jan 30, 2009 at 14:55 UTC ( [id://740196]=note: print w/replies, xml ) Need Help??


in reply to setting up a csh from perl

You may want to just open a pipe:
open CSH, "| csh -f -DHOME=new -DPATH=." || die "Open failed";
It sounds like you have the whole picture:
my $child = fork; die "Fork failed" if not defined $child; if ( $child ) { # parent stuff } else { #child %ENV = ( what => 'ever', you => 'need' ); exec( ... ) || die "exec failed: $!"; }
Be well,
rir

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found