in reply to Re: Child process reading <STDIN> from parent
in thread Child process reading <STDIN> from parent
parent.pl
=========
********************************************..... launch_chld{ my $cmd = "val_report.pl killall"; my $h = IO::Handle->new; die "IO::Handle->new failed." unless defined $h; open $h, $cmd . ' 2>&1 |'; $h->autoflush(1); }
val_report.pl
=========
****************************************.... ... process_args{ if(XYZ){ print "Do you really want XYZ. <YES> or <NO>"; die "Cant proceed as confirmation is NO" if(<> ne 'YES'); } }
Now process args will expect a input from user which in this case is parent.pl.
The question is how do i pass a "YES" or "NO" to process_args?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Child process reading <STDIN> from parent
by Eily (Monsignor) on Oct 15, 2013 at 15:40 UTC | |
|
Re^3: Child process reading <STDIN> from parent
by rjohn1 (Sexton) on Oct 15, 2013 at 07:59 UTC |