Thread: System Call
View Single Post
  #2 (permalink)  
Old August 24th, 2004, 11:25 AM
davekw7x davekw7x is offline
Authorized User
 
Join Date: Feb 2004
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The function system() executes a program.

For example in Windows if the executable is in C:\bin
Code:
  system("C:\\bin\\wgnupl32.exe");
In Linux/Unix if the executable is in /bin

Code:
  system("/bin/gnuplot");
The string in the argument to system should be the same that you would use from a command line. You can include arguments to the application within the string.

Dave
Reply With Quote