in reply to Is there anyway to redirect the output of exec?
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.
|
|---|