Jimsta
01-24-2004, 10:43 AM
Hi everyone.
Im currently testing an example given to me that uses the C execl() function (the function looks up for a file composed of a command, eg win32 files, executes them and then terminates). Im getting no probs in terms of syntax structure, but the program does not appear to be terminating the command. The code is shown below
#include <stdio.h>
#include <process.h>
int main()
{
printf("testing connection:\n");
execl("c:\windows\system32\ping.dos","ping","localhost",0);
return 0;
}
Im currently testing an example given to me that uses the C execl() function (the function looks up for a file composed of a command, eg win32 files, executes them and then terminates). Im getting no probs in terms of syntax structure, but the program does not appear to be terminating the command. The code is shown below
#include <stdio.h>
#include <process.h>
int main()
{
printf("testing connection:\n");
execl("c:\windows\system32\ping.dos","ping","localhost",0);
return 0;
}