system
Executes operating system commands
#include <stdlib.h>
#include <nwthread.h>
int system (
const char *command);
If successful in passing the command to the operating system, returns 0. Any errors in executing the operating system commands are shown on the system console screen.
If the command string is longer than 512 characters, returns -1 and sets errno to the following:
This function always echoes input directly to the system console screen. Errors in executing the operating system command are shown on the system console screen.
NOTE:If the console operator is typing, your string will be intermixed with the input from the console operator.
#include <stdio.h>
#include <stdlib.h>
#include <nwthread.h>
/*————*/
main ()
{
.
.
.
system ("LOAD MONITOR");
.
.
.
}
/*————*/