I couldn't find any answer for my problem anywhere. I hope this is not a silly question.
I wrote a program in c on c9.io, it is working flawlessy: it compiles and runs with no problem at all.
Due to an internet mulfunction now I cannot rely on c9.io.
Anyways, I downloaded the code (the c code, not the compiled file), I compiled it on my Ubuntu VirtualBox machine and no problem, just to be a 100% sure I also made a "chmod +x" on the compiled file.
But when it comes to running the compiled file, it gives an error generated by this piece of code:
if(read(mypipe[number*2],buff,sizeof(buff)) == -1){
perror("read 1");
}
This wasn't happening on c9.io, the same code (copied & pasted) on c9.io is not printing this error. I'm really stuck on this, please help me :'(
INFO: On c9.io I'm using a machine running the blank Ubuntu
EDIT: The variables appearing on the piece of code I pasted are all defined, as a matter of fact the same code is working on c9.io without ANY changes.