Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Should I use "SYSTEM" or "EXEC"

Status
Not open for further replies.

moof15

Programmer
Aug 22, 2002
23
0
0
US
I am trying not to save this xml file in the program.
Should I use exec or system to first run the program?

exec"program.pl";

open(LOG, >"file-save.xml") || die " can't open the logfile to clear\n";
close(LOG);
 
Even though I can't quite figure out what your question is asking, I can tell you this:

exec() executes a system command and never returns.

system() executes a system command and returns when finished.

This probably is what you need to know in order to make your decision.

--jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top