shell script usage

Discuss Applications

shell script usage

Postby cdhgold » Wed Apr 14, 2004 7:57 pm

i ahave installed a mp3 streaming app called slimserver on my suse box and am trying to start the app it is suppose to start wiht the command "slimserver start" slimserver is a shell script but i keep getting errors when trying to run it any ideas? here is what i get

jose:/etc/rc.d/init.d # ls
. .. slimserver
jose:/etc/rc.d/init.d # ./slimserver start
./slimserver: line 12: /etc/rc.d/init.d/functions: No such file or directory
./slimserver: line 15: .: /etc/sysconfig/network: is a directory
./slimserver: line 22: [: =: unary operator expected
Starting SlimServer: ./slimserver: line 33: daemon: command not found

jose:/etc/rc.d/init.d # slimserver start
-bash: slimserver: command not found

what am i doing wrong or missing?
Chris
User avatar
cdhgold
administrator
administrator
 
Posts: 382
Joined: Tue Mar 18, 2003 6:11 pm
Location: Texas

Postby Void Main » Wed Apr 14, 2004 8:42 pm

Can you provide a link to the exact RPM that you downloaded? Is it an RPM built for SUSE? I haven't run SUSE in a while and I don't remember how it's init scripts are set up. Something I am curious about, do you have a /etc/rc.d/init.d/functions file? If not I'm guessing that init script is targeted for Red Hat.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby cdhgold » Thu Apr 15, 2004 5:59 am

no the slimserver shellscript is the only thing in /etc/rc.d/init.d I got the rpm from
http://www.slimdevices.com/downloads/Sl ... noarch.rpm

I did a rpm -Uvh direct from that URL
I got it working had to run the slimserver.pl --daemon instead of the script since the script was meant for redhat ...
Chris
User avatar
cdhgold
administrator
administrator
 
Posts: 382
Joined: Tue Mar 18, 2003 6:11 pm
Location: Texas


Return to Applications

Who is online

Users browsing this forum: No registered users and 1 guest