in reply to finding the status of the program being called from perl

You also might want to check out Expect.
  • Comment on Re: finding the status of the program being called from perl