Maybe that was exactly what you desidered, anyhow beware that exec never returns, as it terminates the current program and executes the external command you pass as parameter. You should use system if you want to get control again after the execution of the command.
Michele.
In reply to Re: Is there anyway to redirect the output of exec?
by arthas
in thread Is there anyway to redirect the output of exec?
by alk1000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |