Executing command lines in C/C++
Lord of the newbies here again. How does one execute a particular command line (such as "ping 192.168.0.1") in C/C++ on a Mandrake 8.0 machine (or linux in general)? Do you have to use a special function like Winexec() in Windows? If so, what is the name of this function, and what file is it declared in? If not, how do I do this?
Thanks in advance,
Don't misunderstand me, I'm not rude, but do a search before asking this kind of question.
I saw it answered 3 or 4 times, only this week...
BTW, you're looking for the system() function.
'man system' may help.
sorry about that. You're not being rude. I was just being stupid. I was tired.
|All times are GMT -5. The time now is 04:26 AM.|