webOS Nation Forums >  webOS Discussion >  webOS Discussion Lounge > Wallswitcher.sh
Wallswitcher.sh
  Reply
 
Thread Tools Display Modes
Old 07/01/2009, 01:59 PM   #1 (permalink)
Member
 
Veritas06's Avatar
 
Posts: 603
I'm sorry if this is in the wrong category for the forum, not sure exactly where this would fall under. I'm tying to follow the Random Wallpaper Switcher ( h t t p : / / predev. wikidot . com/random-wallpaper-switching ) Random Wallpaper Switching post at the pre dev wiki but i cannot get the script to execute. I'm about to leave for work so i was just hoping i might be able to fix it by the time i got home. When i try to execute the script i get:

Quote:
*******@castle:/$ sudo /opt/share/wallswitcher/wallswitcher.sh
/opt/share/wallswitcher/wallswitcher.sh: eval: line 2: target:: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 3: wallpaper:: not found
Found 0 in /media/internal/wallpapers/
Using random file:
JSON Import String:
JSON Set String:
luna-send uri message
-h this help screen
-P send over the public bus (send over private bus is default)
-s send a signal
-d turn debug logging on
-i turn on interactive mode
-t x average over x times getting one response
-n x exit interactive mode after the x replies
luna-send uri message
-h this help screen
-P send over the public bus (send over private bus is default)
-s send a signal
-d turn debug logging on
-i turn on interactive mode
-t x average over x times getting one response
-n x exit interactive mode after the x replies
*******@castle:/$
I tried search & no results turned up. Any help would be appreciated.

I do have wallpapers in the directory too, ~120 of them so i'm not sure why it isn't detecting them.

~Thanks in advance.

[ Doesn't seem to let me post the URL to show you what tutorial i'm trying to follow]

h t t p : / / predev . wikidot . com/random-wallpaper-switching (( Added Spaces ))
Veritas06 is offline   Reply With Quote
Old 07/02/2009, 12:21 AM   #2 (permalink)
Member
 
Veritas06's Avatar
 
Posts: 603
Okay, so i recopied the wallswitcher.sh line-by-line & now have a new set of errors...

Quote:
veritas@castle:/$ sudo /opt/share/wallswitcher/wallswitcher.sh
Password:
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Skull.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: -: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: -: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Schwarzenegger.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Begins: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Glass: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Lantern.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Tails.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: USB.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Lantern.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Nautical: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Plaid.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Power.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Dawn.JPG: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: Cross.jpg: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: iPhone.JPG: not found
/opt/share/wallswitcher/wallswitcher.sh: eval: line 1: syntax error: Unterminated quoted string
veritas@castle:/$
Those are all names of wallpapers i have in /media/internal/wallpapers, but i'm not sure why it doesn't work =\.

~Thanks
Veritas06 is offline   Reply With Quote
Old 07/02/2009, 10:25 AM   #3 (permalink)
Member
 
Posts: 554
The WebOS Development Forum probably has more posters who know this stuff.

Is the capitalization of the file names correct? Do you need to specify a path?
jdale is offline   Reply With Quote
Old 07/02/2009, 10:59 AM   #4 (permalink)
Member
 
Veritas06's Avatar
 
Posts: 603
Yes, the capitalization is correct & the path is given in the script & i have have checked the directory to make sure they're in there. I keep getting closer & closer to getting this to work. Since i posted last i made all the wallpapers lowercase & have no spaces & when i run the script it will change, i just can't get it to work with cron (to rotate it every hour).
Veritas06 is offline   Reply With Quote
Old 07/03/2009, 07:36 PM   #5 (permalink)
ev0
Member
 
Posts: 1
have you tried to restart cron? I had to kill it and start it back up before it would reread the cron file.
ev0 is offline   Reply With Quote
Old 07/03/2009, 09:21 PM   #6 (permalink)
Member
 
Veritas06's Avatar
 
Posts: 603
Yeah, I restarted my phone & got it working. Thanks for your help!
Veritas06 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0