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.
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