Your Digital Media Has Never Looked So Good

 
dsas
Posts: 1
Joined: Sun Oct 12, 2008 10:01 am
Contact:

Sun Oct 12, 2008 1:32 pm

Goemon wrote:
Hello,

Thanks for the great software - runs out of the box (err. ZIP-file) on my uNSLUng NAS server. I am happy :D

Any recommendations how to run it automatically after boot?

CU
Goemon


Make an init script. Look at files in /etc/init.d for examples.

See also http://www.novell.com/coolsolutions/feature/15380.html for a tutorial.

There may be some minor differences depending on the distro installed on your nas box.
 
smbrannan
Posts: 10
Joined: Mon Sep 13, 2004 7:48 am

Sun Nov 16, 2008 10:48 am

Using the instructions below, but adding the sbs.command file as a Startup item in the Accounts preference pane, worked for me too.

However this launches Terminal and then executes the script. If I close the Terminal window then the script stops executing.

Is there a way to keep the script running without launching Terminal, or or appearing in the GUI at all?

ralnar wrote:
Mission accomplished (after some digging)!
Thanks for leading me in the right direction!
Here's how for anyone else interested:

-Wrote a script sbs.sh
#!/bin/sh
cd Documents
cd sbs
python soundbridgescrobbler username=xxx password=xxx


first two lines to go to right folder

-renamed file to sbs.command

-changed rights with
chmod +x sbs.command
in Terminal

-dropped sbs.command in SystemPrefs/Accounts/Startup objects list
 
upthera
Posts: 2
Joined: Wed May 21, 2008 7:35 am

Wed Feb 25, 2009 9:07 am

Thanx a lot for the script. But I have the following problem; The script detects my CH3SNAS instead of my Soundbridge and stops there.

# python soundbridgescrobbler.py username=theslowone password=920oe1
Service CH3SNAS._http._tcp.local. added
/sbs/Zeroconf.py:673: DeprecationWarning: integer argument expected, got float
self.data.append(struct.pack(format, value))


How can I repair this?
 
Hans79
Posts: 2
Joined: Mon Jan 21, 2008 12:55 pm

Thu Oct 08, 2009 12:26 am

I am totally new to this shell scripting thing and can't seem to get the script to work automatically. (on a mac by the way)

I got the script to work but since I don't want to type it in terminal every time I am looking for a way to create a shortcut.
I know smbrannan explains how he made the script but I can't seem to understand how to do that and instead of it launching on startup a shortcut would work just fine for me.

Any suggestions, step by step tutorials or links?

Thanks
 
pankajnagarkoti87
Posts: 2
Joined: Tue Oct 13, 2009 12:36 pm
Contact:

Tue Oct 13, 2009 12:38 pm

Rebooting after updating Python did help though...
Thanks, seems to work fine

Who is online

Users browsing this forum: No registered users and 1 guest