summaryrefslogtreecommitdiff
path: root/reference/C/EXAMPLES/system.c
blob: c3c3cc79d6774aa11ba6dec8e1373e7f4794e425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/************************************************************************
 * 
 * Purpose: To test the system function.
 *
 * Author:  M J Leslie
 * Date:    23-Oct-95
 *
 ************************************************************************/

#include <stdlib.h>

main()
{
				/* Execute an system command and wait 
				 * for it to end.
				 * DO NOT ATTEMPT TO RUN INERACTIVE CMDS*/
  system("ls -l");
}