[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead
Tynsoe Projects • View topic - Debugging scripts
Page 1 of 1

Debugging scripts

PostPosted: Mon May 17, 2010 12:58 pm
by ybizeul
Are are some tips about debugging your script when you are not quite comfortable with shell scripts

Test your script in Terminal
Any script written for GeekTool can be tested in Terminal. Terminal application can be found in /Applications/Utilities/. You can just copy and paste scripts here if they are short.
For longer scripts, this can become hard to debug so the best thing to do is to paste them in a .sh file, and run it from terminal :
Code: Select all
$ cd path/to/folder
$ sh ./myScript.sh
# Or, with debug
$ sh -x ./myScript.sh


Determine a faulty script from the console
When something goes wrong with a script, you can sometimes get a clue on which script is causing problem from the messages logged in the console.
If the console is not displayed on your desktop via GeekTool, open /Applications/Utilities/Console and look for GeekTool error. If you see an id like "2A850896-7020-46C0-98F8-EA03C85BB623", then you can match it against what is displayed in the bottom of properties window when you open GeekTool's preference pane.

Contribute if you see anything missing here that can help people

Re: Debugging scripts

PostPosted: Thu Sep 22, 2011 12:52 pm
by Kename Fin
Not so much something missing, but I have come up against an issue that defies my debugging, namely, the script works fine witin the Terminal, but within GeekTool manages fail. Are there commands that GeekTool does not recognise? Is there a listing somewhere?

Could it be related to permissions?

Re: Debugging scripts

PostPosted: Thu Oct 27, 2011 3:51 pm
by gazhay
I have a script which functions fine in the terminal
Functions fine if I drop into a /bin/sh shell and run it

yet somehow, the output geektool gets is different and causes a command not found error.

I have a very similar script which works, is geektool drifting back to it's old voodoo days?

Re: Debugging scripts

PostPosted: Fri Jun 29, 2012 10:28 pm
by The_Ardly374
The biggest thing that I can say is to make sure that you store your scripts in a directory that has no spaces in its name.

I.E. wouldn't require you to use the Backslash in Terminal "\" ("users/firstname\ lastname/folder/script.extension")


This plagued me for over a week. It turned out the only thing was that the scripts folder was in a folder with a space in the name, and I was doing everything else correctly, as I thought.

Re: Debugging scripts

PostPosted: Mon Sep 10, 2012 6:41 am
by sunnylove
You've heard it time and once again: fad diets do not strategy for abiding weight-loss amber portwood weight loss. But what about these instances when you definitely charge to shed some fat quick? It's tougher to canyon up the promise of blast diet programs like the Lemonade Diet plan, Cabbage Soup Diet, or the most recent eating plan guide when your mission is always to clasp into a new accouterments in time to get a alliance or wedding, otherwise you lastly adjudge you simply wish to shed excess weight.

Re: Debugging scripts

PostPosted: Mon Jan 14, 2013 7:48 am
by Cantello
I still cannot seem to get a command (gcalcli) to work with GeekTool when it works perfectly in the terminal. I copied and pasted the exact command and included all paths and they do not contain spaces or anything strange.

The command is "/usr/bin/gcalcli --config /Users/xyz/.gcalclirc --24h --width 16 calw 1", gcalcli is located at "/usr/bin/gcalcli". Normally when invoked, the command gives a weekly schedule of my Google calendar, but from within Geektool it only shows the top four lines and then stops displaying:

Image

Any ideas what I could do? It's as if GK cannot read the configuration file. Permissions are set to 0644, so everyone should be able to read it.

Re: Debugging scripts

PostPosted: Thu Oct 24, 2013 5:29 am
by taylor520
One of many techniques of Cheap WOW Gold is of course farming certain materials that sell well in the Auction House. I have found out that Mageweave Cloth farming is one of the quite profitable methods. Mageweave Cloth is a fine cloth woven with magic and has a variable drop rate from humanoid mobs in the level 40-48 range. This wow Mageweave Cloth farming guide will show you the best locations to farm Mageweave Cloth.
Zul’Farrak – Zul’Farrak is located in Tanars and it’s my favorite place to farm Mageweave Cloth because you can use your mount inside and it speeds up the pulling of mobs. Just try to pull as many mobs with your mounts as possible. You should always open Shallow Graves. The graves are located near Witch Doctor Zum’rah. When you open these, zombies will spawn and they also drop Mageweave Cloth.

Re: Debugging scripts

PostPosted: Sat Feb 14, 2015 12:12 pm
by farasat1000
The command is "/usr/bin/gcalcli --config /Users/xyz/.gcalclirc --24h --width 16 calw 1", gcalcli is located at "/usr/bin/gcalcli". Normally when invoked, the command gives a weekly schedule of my Google calendar, but from within Geektool it only shows the top four lines and then stops displaying:

___________________

FARASAT

You choose the right?

PostPosted: Thu Mar 19, 2015 7:32 am
by kingran
Health care products industry started in the 1980 s, in a short span of 20 years, has rapidly developed into a unique industry.Health care products industry is booming, the main reason is that people's living standards improved obviously;Secondly, people's lifestyle change, is an important opportunity for the development of health care products industry;Multi-level social life needs, has provided a broad space for development of health care products industry.
The male health products on the market today many, but the summary is the following:
1, sildenafil
Viagra, commonly known as "viagra".
2, he of the non
Love force, mechanism of action with sildenafil, a fellow of phosphodiesterase 5 inhibitors.
3, vardenafil
Levitra, mechanism of action with the above two brothers products, are of phosphodiesterase 5 inhibitors.
4, ketone of letrozole
This is a kind of antidepressant drugs, the mechanism of treatment of erectile dysfunction is complex, involving a substance called serotonin.
5, phentolamine
Is also a kind of adrenergic receptor blockers, mechanism of action is like yohimbine.
The above products are contained different levels of side effects.Today for everyone to recommend a FX3000(http://www.pillsforneed.com/drop-shippi ... psule.html)made of pure natural Chinese herbal medicine. I have been used for a period of time, the effect is good.Interested friends can try

Re: Debugging scripts

PostPosted: Wed Aug 05, 2015 8:14 am
by Yonderboy
My simple disc space display recently stopped working. Any clues?

df -hl | grep 'disk0s2' | awk '{print $4" av "$2" free ("$5" used)"}'

The disc name is correct.