Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
Ack! I can't get either the Facebook Feed to work or any of my bash scripts to run. Can somebody please run through them for me? I tried and made sure that all of my directories were correct but they still don't work...
 
Ack! I can't get either the Facebook Feed to work or any of my bash scripts to run. Can somebody please run through them for me? I tried and made sure that all of my directories were correct but they still don't work...

Hi,

some more information would be good: are you getting an error? are you getting nothing at all? can you post a screenshot?

Anyway my initial guess is that your scripts are not executable.
Run:
chmod u+x <path to script file>
in Terminal and see if it works..

Good luck
 
My newest desktop. If you look on the apple LCD display my geektool scripts look like their on that screen.
 

Attachments

  • Screen shot 2009-11-01 at 8.11.09 PM.png
    Screen shot 2009-11-01 at 8.11.09 PM.png
    1.1 MB · Views: 492
Hi,

some more information would be good: are you getting an error? are you getting nothing at all? can you post a screenshot?

Anyway my initial guess is that your scripts are not executable.
Run:
chmod u+x <path to script file>
in Terminal and see if it works..

Good luck

Thanks for the reply. I can do my tomorrow.scpt that shows only my calendar from tomorrow and it works fine when I bash it in Terminal.

4079945406_f0052350a6_b.jpg


But I can't get it to output on GeekTool

My command is
Code:
bash /User/davidaaronmusic/Geek Tool/tomorrow.bash

Any ideas?
 
Thanks for the reply. I can do my tomorrow.scpt that shows only my calendar from tomorrow and it works fine when I bash it in Terminal.

4079945406_f0052350a6_b.jpg


But I can't get it to output on GeekTool

My command is
Code:
bash /User/davidaaronmusic/Geek Tool/tomorrow.bash

Any ideas?

Remove the space in 'Geek Tool'...or try to make it 'Geek\ Tool'

Anyway, ALWAYS test the same command!!
IF you use
bash /User/davidaaronmusic/Geek Tool/tomorrow.bash
then put exactly that in Terminal in order to test!
 
Hey I need some help. I had a quote running across the top of my desktop with the author underneath. It was working great for about a week and has since stopped working. This is the code I have:

Quote:

curl http://encarta.msn.com/encnet/feeds/rssfeed.aspx?type=quote | grep description | sed 's/^[ \t]*//' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | cut -d - -f 1

Author:

curl http://encarta.msn.com/encnet/feeds/rssfeed.aspx?type=quote | grep description | sed 's/^[ \t]*//' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed 's/.*\(-\)/-/'


Any ideas?

Edit: Nevermind, the link doesn't work anymore. FAIL.

Anyone have any code to get a "quote of the day"?
 
Remove the space in 'Geek Tool'...or try to make it 'Geek\ Tool'

Anyway, ALWAYS test the same command!!
IF you use
bash /User/davidaaronmusic/Geek Tool/tomorrow.bash
then put exactly that in Terminal in order to test!

Ok so I removed the space in my GeekTool scripts folder, updated all the appropriate scripts and ran the updated script through terminal and I got that. And it STILL won't show up on my Geektool.

I also made sure that it was /Users (it was already I just missed it when I posted) and I am still not getting anything from Geek tool.
 
Top 5 cpu hogger

following shell command was working in leopard, but it doesn't work in snow leopard, does any one know the wright shell command plz...........:confused:

top -ocpu -FR -l2 -n5 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 7-24,64-69
 
Nice and simple.

EDIT: Updated

i fixed adium to fit the scheme

i fixed calender to fit color scheme

and i hope i made it now so the weather doesn't keep messing up..i.e. before the condition would be ontop of the date sometimes, or the thursday would overlap with the month, etc..



lVt
 
Why do you separate your contacts in guys and girls? Have there been... confusing incidents...?
 
Why do you separate your contacts in guys and girls? Have there been... confusing incidents...?

ROFL

no. :p

I just did it like that back in september of 05, maybe i should just change it back into Friends/Family/Other or something.

I really can't remember the reason behind it to be honest, but I may leave it, because i remember it took it awhile to get it right, since every-time someone signed on it would automatically go into the guys section, so if it was a girl, i had to manually pull it to the girls group.
:eek:
 
Why do you separate your contacts in guys and girls? Have there been... confusing incidents...?

ROFL

no. :p
*snip*

I just want to know what the 'people' who are in Other are...:eek::cool::D

Few changes:
Current and Next month in top right. Using a blank icon with no name to make sure no new icons cover them.
iTunes: Song/Artist/Lyrics
Forecast
Active, Wired, Inactive, and Free memory
Total CPU load
Mail
Volume
Time
Date
Two white ticks - currently using a second monitor that has a smaller resolution, so the ticks let me know where I can move from right to left

Need to find some new icons. Went back to default in the mean time.
 

Attachments

  • Screen shot 2009-11-08 at 4.07.06 PM.png
    Screen shot 2009-11-08 at 4.07.06 PM.png
    1.1 MB · Views: 358
I just want to know what the 'people' who are in Other are...:eek::cool::D

Few changes:
Current and Next month in top right. Using a blank icon with no name to make sure no new icons cover them.
iTunes: Song/Artist/Lyrics
Forecast
Active, Wired, Inactive, and Free memory
Total CPU load
Mail
Volume
Time
Date
Two white ticks - currently using a second monitor that has a smaller resolution, so the ticks let me know where I can move from right to left

Need to find some new icons. Went back to default in the mean time.

nice idea with the tick marks.

i may add the ram script in there so i can free up some space on the toolbar as well.

how did you get the low and high's for weather on there?
 
nice idea with the tick marks.

i may add the ram script in there so i can free up some space on the toolbar as well.

how did you get the low and high's for weather on there?

Just found it someplace here. Need to replace the 60181 with your zip.

Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=[COLOR="Red"]60181[/COLOR]&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/High\:\ \(.*\)\ Low\:\ \(.*\)/\?H\: \1\  L\:\ \2/" | sed "s/\?\(.*\)/\\1/"
 
Quote of the day

Hey I need some help. I had a quote running across the top of my desktop with the author underneath. It was working great for about a week and has since stopped working. This is the code I have:

Quote:

curl http://encarta.msn.com/encnet/feeds/rssfeed.aspx?type=quote | grep description | sed 's/^[ \t]*//' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | cut -d - -f 1

Author:

curl http://encarta.msn.com/encnet/feeds/rssfeed.aspx?type=quote | grep description | sed 's/^[ \t]*//' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed 's/.*\(-\)/-/'


Any ideas?

Edit: Nevermind, the link doesn't work anymore. FAIL.

Anyone have any code to get a "quote of the day"?

I have no idea (really) what I'm doing, but I somehow managed to pull together this script (based on others in this thread, mostly) to get the latest quote of the day from an RSS feed I had in Google Reader. If anyone can make it better, please do so - for example, I can't figure out how to remove the blank lines at the top of each section when it's returned...

Code:
#!/bin/sh

url="http://feeds.feedburner.com/quotationspage/qotd"


if [ $# -eq 1 ] ; then
  headarg=$(( $1 * 2 ))  # $(( )) specifies that you're using an equation
else
  headarg="-8"  # default is four headlines 
fi

curl --silent "$url" | grep -E '(<description>)' | \
	sed '/^$/d' |\
	sed -n '2,$p' |\
	sed -e 's/<description>//' \
 	    -e 's/[^][^]*logo<\/description>//' \
            -e 's/<a href=[^][^]*description>//' |\
	head $headarg | fmt -w 115

curl --silent "$url" | grep -E '(title>|<description)' | \
	sed -n '4,$p' |\
	sed -e 's/<title>/-/' \
            -e 's/<description[^][^]*description>//' \
	    -e 's/<\/title>//' |\
 	head $headarg | fmt
 
My weather script has also stopped working :mad:

I tried to go to the wunderground printer page and there is an "Internal Server Error"???
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.