(local script)
#!/dis/shload std expr stringargs := $*s := sh -c ${quote $"args}mkdir -p /tmp/lpipebind '#|' /tmp/lpipeecho osos ssh $remote /home/ericvh/inferno/Linux/power/bin/emu -I -r /home/ericvh/inferno /dis/sshexport /tmp/lpipe/data1 &echo shellmount -A /tmp/lpipe/data /n/remote/dis/shecho halt > /n/remote/dev/sysctlunmount /n/remote
(remote script)
The problem is that if I terminate the local inferno, the remote emu still runs. I'm not sure how to catch and clean that up gracefully....
#!/dis/shload stdor {ftest -e /net/cs} {ndb/cs}bind -c '#U*' /n/localbind -a '#C' /bind '#|' /tmp/pipescat /tmp/pipes/data > /dev/hoststdout&cat /dev/hoststdin > /tmp/pipes/data&export / <>/tmp/pipes/data1 >[2] /dev/nullecho halt > /dev/sysctl
The problem is that if I terminate the local inferno, the remote emu still runs. I'm not sure how to catch and clean that up gracefully....

1 comment:
If the remote is not closing, then maybe If either of the cat commands fail in the remote script then they should halt the system.
Not tried this but maybe,
{cat /tmp/pipes/data > /dev/hoststdout; echo halt > /dev/sysctl} &
Post a Comment