Page 1 of 1

Generating a stderr file when running from desktop icon?

Posted: Sun Jun 08, 2008 1:45 pm
by DaddyHoggy
Probably a more general Ubuntu/Linux question than oolite per se, but I thought I'd ask.

If I run Oolite from a command line from the terminal I can type this line:
/home/john/Oolite-dev/1.71-maintenance/oolite.app/oolite 2>> /home/john/Oolite-dev/1.71-maintenance/oolite.app/oolite_stderr.txt &
and it will run oolite and create the stderr file in the same directory as the oolite program.

However, I don't seem to be able to do this from the desktop icon - if I put the same line in on the "Command:" box under the "Launcher" tab for the icon properties no stderr file is created.

Clearly I'm doing something stupid, is there an easy fix?

TIA

DaddyH

Posted: Mon Aug 11, 2008 7:13 pm
by davcefai
If the question is still valid:

Try putting your command into a file named, for example, oolite-logged.sh. Make the file executable and use the desktop icon to launch it.

Posted: Mon Aug 11, 2008 10:47 pm
by DaddyHoggy
Didn't find a fix - so thanks for getting back to me - I will give your suggestion a try. Much appreciated.