How about: FD=3 exec $FD< <(nohup ./vm.sh Pharo.image st doStuffAndSave.st) read -n 1 -u $FD echo $REPLY exec $FD<&-
runs image in background, reads one character from it's output, and output's it. Will close the $FD (file descriptor at the end) See: http://wiki.bash-hackers.org/commands/builtin/read http://ubuntuforums.org/showthread.php?t=979694 Works probably with a cygwin bash, too. On 15 Nov 2012, at 16:45, Bruni camillo wrote: > > ./vm.sh Pharo.image st doStuffAndSave.st; > > ./vm.sh Pharo.image & # relaunch and fork to background > > ./doStuffAfter.sh > > > > but yeah, that violates your not-image-stop requirement :) > > > > -- > www.tudorgirba.com > > "Being happy is a matter of choice." > > > > -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
