SPUG: redirecting STDIN
Peter Dueber
peter at hivnet.fhcrc.org
Fri Nov 5 15:46:24 CST 1999
I have some code like this:
$x="some-string";
system("TheirProg arg1 arg2..... <in_file>");
TheirProg expects input from either the file "in_file", or from STDIN if in_file
is equal to "-".
I don't have the source for TheirProg and I would like STDIN to instead be the
contents of string $x.
Can this be done?
Peter Dueber, Esq.
HIVNET Statistical Center
Fred Hutchinson Cancer Research Center
Phone: 206.667.6568
Fax : 206.667.4812
Email: peter at hivnet.fhcrc.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list
mailing list