Teen Programmers Unite  
 

 

Return to forum top

C++ system commands

Posted by grandsnafu [send private reply] at August 04, 2001, 01:20:36 AM

How do I send a command to the system (I am running linux), e.g. run 'lynx google.com' when the user types web? In C you can just use 'system', but that doesn't seem to work with C++.

Posted by Psion [send private reply] at August 04, 2001, 01:54:13 PM

If it doesn't seem to work, then you are doing it wrong or have a setup error in your development environment. Are you including stdlib.h or cstdlib?

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.