Quote:
Originally Posted by
LMHmedchem
The only reference to fork is, ichpid = fork(); and then ichpid is used.
The fork isn't relevant. What's relevant is what redirections have been done before and/or after it, if any.
Quote:
I just don't under stand why it doesn't print to the terminal.
How do you know it's printing at all?
Quote:
I have tried in CentOS, and Ubuntu and get the same results.
Moving a sick sheep from place to place won't fix the sheep.
Quote:
There are no fortran header files, so there can't be a missing include, even if the compiler would let it go. Am I missing a compiler flag or something like that?
There's no "stop consoles from working" compiler flag, no. I suspect it's something internal to the program.
Quote:
I could post the make file if that would help.
Not really.
Quote:
The only difference between the windows and linux versions are the src files for the parent and child main functions, and an auxilary functions src file. That is a very small part of the code and the rest is the same for win/lin. I don't really understand why this works in cygwin bash, but not linux bash. Both are using the gcc3.4 family.
I suspect differences in paths and such are preventing sub-programs from launching. Remember that UNIX in general is case-sensitive while Windows is not.
Trace every step of the process. Put print statements in places so you can see where the execution stops.
Of course, I'm only making wild guesses. Without seeing the code that's the best any of us can do.