I created a cron in unix that fires off a perl script which in turn calls a 'c' program. The problem is that I need the 'c' program to finish before the script continues on. I first tried exec() but the perl script terminated without continuing when the 'c' program was finished. Then I tried "$command = expect->spawn('c_program');" but it seems the perl script continues without waiting for the 'c' program to finish. Any help would be appreciated.