Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

expect spawn and pipe?

667 views
Skip to first unread message

Dave Watson

unread,
May 11, 1998, 3:00:00 AM5/11/98
to

Hi All:

I'm trying to execute this command with spawn:
ufsdump 0f - /dev/rdsk/c0t3d0s0 | (cd /mnt; ufsrestore xf -)

Having no luck. THe Expect book has a couple of examples with "open"
but I couldn't get that to work either.

The "ufsrestore" command requires a couple of "n"s to finish.
Is this possible with Expect?

--
Dave Watson
dvwa...@NOSPAM.exodus.wvnet.edu

Remove "NOSPAM." to reply.

Don Libes

unread,
May 11, 1998, 3:00:00 AM5/11/98
to

In article <355759...@exodus.wvnet.edu> Dave Watson <dvwa...@exodus.wvnet.edu> writes:
I'm trying to execute this command with spawn:
ufsdump 0f - /dev/rdsk/c0t3d0s0 | (cd /mnt; ufsrestore xf -)

Having no luck. THe Expect book has a couple of examples with "open"
but I couldn't get that to work either.

The "ufsrestore" command requires a couple of "n"s to finish.
Is this possible with Expect?

You stopped reading too early. Later on the same page (p292), it
suggests this:

spawn /bin/sh -c .......

Don

0 new messages