I am running Windows 7 on one machine and Linux Debian on another. I am creating a C application using NetBeans. It seems to be working just find on Linux when I run it there. But when running on Windows, messes up the output somehow, kinda prints the output more than once...
My program essentially reads lines from a file and does some processing (calls exec, fork, pipe, etc..), then exits when EOF.
Also, I noticed that at the end of each line in the file, \r\n is being added to the string, is there anyway to get rid of that ?
Thank you for your help.