in reply to Run Shell script followed by ctrl-c within perl

Frankly, I don't see enough information here to offer substantive advice... so let me raise some more questions:

You also need to tell us the answers to colwellj's questions.

Then, perhaps (likely) we can be of more direct assistance.

Update: Oh, yes -- is there some reason why a direct approach -- translating your shell script to Perl (which can do almost anything your shell can) -- is not feasible?