views:

79

answers:

3
#!/usr/bin/perl
$sim = "multiq";
`make SCHED=$sim`;
`script > scripter`;
`echo hi`;
print pack("c", 04);
~

This script hangs when script is called. Not sure how to get the perl script to keep running.

+5  A: 
Greg Bacon
+1  A: 

You're have to run that all in one child process if you want it to all interact. See the perlipc for various ways to handle that.

brian d foy
+1  A: 

you might want to look at Expect to control an interactive session

MkV