Generating a stderr file when running from desktop icon?

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Generating a stderr file when running from desktop icon?

Post 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
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
davcefai
---- E L I T E ----
---- E L I T E ----
Posts: 400
Joined: Sun Dec 03, 2006 9:07 pm

Post 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.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Didn't find a fix - so thanks for getting back to me - I will give your suggestion a try. Much appreciated.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
Post Reply