I have been having problems with a line of code, and just found a second interesting problem.
I have a command then when put into terminal will start a program, and then write the output to an output file. Thusfar I have been unable to get the data written to an output file for some reason (although the program starts, and I can watch it spitting out data when I have python open terminal and run it)
For some reason it seems it does not want to redirect my data to an output file. I have tried both doing it in the script, as well as in terminal (python script.py > output.out)
Now I tried starting up a sleep command before the main command, and I get an error from sleep
sleep: invalid option -- 'n'
here is the code
os.system('gnome-terminal -e "sleep 10 ; /usr/local/bin/mpirun -np 4 /home/mike/bin/Linux-ifort_XE_openmpi-1.6_emt64/v2_0_1/Pcrystal </dev/null &> mgo.out &"')
os.system,gnome-terminal, and the quoted command line run insidegnome-terminal). At first glance I'd say the semicolon isn't being handled bygnome-terminaland the-noption is being seen by thesleepcommand.