Serial Monitor has to be open to make Arduino talk with my program

I'm trying to make the C++ tutorial on the playground (http://sglez.org/2008/08/05/interfacing-arduino-with-c-and-libserial/) work,but i have a small problem: the program needs the serial monitor to be open to receive data,or at least a second instance of the program running and only "listening" for incoming data..
Any ideas?

PS: i use archlinux and arduino UNO

I do not know too much about this topic, but it is something I would like to look into.

I checked through some of the related links on that site and passes by this message... it might have some significance to you....

Important note: when connecting to some Arduinos, it is necessary to use COM port "device names" as outlined at http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1286253977/18#18.

Also you can try Firmata, which is basically emulating the serial connection from the arduino software. It's just a way for the computer to talk to the arduino.

Hope that helps...

If you get ready to try a different "Talk to Arduino over serial link" tutorial, there are several at...

The thing is,i get no errors at all,the code is fine..i only have to keep the monitor open to actually read the data from within the program. If i use the program on its own,it doesn't read anything! =(