GeekTool logs "command not found" for commands that work fine in Terminal

0

I'm trying to run simple commands so I can have GeekTool output date/time etc. to my desktop. Should be simple enough to do but it never actually outputs anything into the boxes. Console log shows it's getting spammed by GeekTool to say 'command not found', though the same command (e.g. date +"%H:%M") works fine in Terminal.

All I want to achieve is the ability to output a clock displaying time/date on my desktop that fits into my wallpaper. I've tried changing the format of the commands, using the built-in editor window as well as the command line box on the Properties tab. I had a look at the permissions in '/' (because GeekTool runs commands from there) and nothing unusual comes up. None of these solved the issue. When I use a command that simply echo's a string it works (e.g. echo "hello" displays the word hello).

Does anyone have experience with GeekTool, and understand why it won't run basic commands? As I say, it's spamming my console with 'command not found' despite them working in terminal...

Running OS X 10.6.6 on a MacBook Pro (mid-2010).

Kevin Dowling

Posted 2011-02-09T09:46:57.407

Reputation: 3

1Hello and welcome to Super User! Please edit your question; adding the following points may get you better answers: 1. What are you trying to accomplish? 2. What have you tried so far? 3. What results did you get? 4. How did that differ from the results you were expecting? (please be more specific, these are not self-evident from the current state of your question) – Piskvor left the building – 2011-02-09T09:49:43.343

What about echo $PATH, or using /bin/date +"%H:%M"? – Arjan – 2011-02-09T13:52:02.170

Did you meanwhile try the above? – Arjan – 2011-02-14T16:48:05.570

Yes, tried that and it worked! The issue was the path. Using /bin/date was all that was needed. – Kevin Dowling – 2011-02-15T18:22:30.593

Answers

1

Try entering whole path for command. You can figure it out by running

which date

in your terminal.

Olli

Posted 2011-02-09T09:46:57.407

Reputation: 6 704

0

You need to use single quotes, so use

date +'%H:%M' 

and it will work :-)

Here is a screenshot, how my Shell geeklet is configured; besides name, position, and "default group" yours should look quite similar:

shell geeklet to display time

Asmus

Posted 2011-02-09T09:46:57.407

Reputation: 2 007

No, that didn't work unfortunately. I tried single quotes originally. Using the feedback status section, it simply returns a red dot... – Kevin Dowling – 2011-02-09T13:42:00.073

That´s weird - which version of GeekTool are you using? – Asmus – 2011-02-09T14:21:35.920

I've the latest build... – Kevin Dowling – 2011-02-14T12:58:41.090

@KevinDowling : I´ve posted a screenshot above, does that help? – Asmus – 2011-02-14T16:37:22.683

(@Asmus, if that code on the bottom is some license code, then you might want to crop the image?) – Arjan – 2011-02-14T16:44:32.080

@Arjan thanks, but this is just an UUID for the "Geeklet", so not important/private at all. :-) – Asmus – 2011-02-14T20:18:27.187