in reply to could not get exec and sytem to work

Hi,

let me cite the documentation to exec:

The exec function executes a system command and never returns ...

This should explain what you get. You never get to your second exec line.

Regards
McA