|
From: <gl...@ma...> - 2001-07-23 12:31:33
|
Dear All,
I am trying to do something like this:
$ob=Expect->spawn("rsh machine command arg | localcmd");
@results=ob->expect("output1","output2",...);
I get the impression that spawn cannot handle the pipeline.
I am guessing that I need to do this:
$ob1=Expect->spawn("rsh machine command arg");
$ob2=Expect->spawn("localcmd");
and then use interconnect ....???
But I am very confused by the interconnect docs I have found
so far. Can someone tell me whether I'm on the right track,
and a little guidance? Or suggest another solution?
TIA
Glen
--
Glen Davison gl...@ma...
Computer System Administrator phone: +61 2 9385 7018
Maths, UNSW fax: +61 2 9385 7123
|