Computing.Net > Forums > Unix > calling xeyes repeatedly with c++

calling xeyes repeatedly with c++

Reply to Message Icon

Original Message
Name: nace33
Date: September 22, 2004 at 10:47:36 Pacific
Subject: calling xeyes repeatedly with c++
OS: debian
CPU/Ram: pent 4, 512
Comment:

I was wondering if anyone could help me...I need to call xeyes 5 times within the same c++ program...when i use

system("xeyes");

it opens eyes and then it waits for me to close that before opening another one, does anyone know how to open multiple copies and then allow the program to proceed without having to close xeyes..thank you
Jim


Report Offensive Message For Removal


Response Number 1
Name: Don Arnett
Date: September 22, 2004 at 11:18:49 Pacific
Reply: (edit)

Try:

system("xeyes&");


Report Offensive Follow Up For Removal

Response Number 2
Name: nace33
Date: September 22, 2004 at 11:23:33 Pacific
Reply: (edit)

Thank you very much, I am trying to find a book or a website that has all this kind of information on unix, do you have any suggestions.


Report Offensive Follow Up For Removal

Response Number 3
Name: nails
Date: September 22, 2004 at 12:11:53 Pacific
Reply: (edit)

Hi:

You might want to fork() another process. This is getting into the area of Unix Interprocess Communications, IPC. Google on "fork" unix and you'll get a ton of responses. A good intro to fork() is:

http://www.cs.appstate.edu/~jtw/cs3481/f99/lab/fork.html


Regards,

Nails


Report Offensive Follow Up For Removal

Response Number 4
Name: Wolfbone
Date: September 22, 2004 at 12:47:24 Pacific
Reply: (edit)

"I am trying to find a book or a website that has all this kind of information on unix, do you have any suggestions."

info libc processes



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: calling xeyes repeatedly with c++

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge