View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Jan 19, 2006 8:41 pm 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
Ok, I am using Edna MP3 Server.. Works great, but, I cannot get the thing to autostart...

If I ssh in and do cd /usr/share/edna hit return, then ./edna.py & The program executes fine....

So, it would make sense that I could do this: /usr/share/edna/edna.py & But this give me an error about no edna.conf file found....

So can someone help me figure out what I am doing wrong?? thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 8:48 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
This might be a stab in the dark but try this.

When you start it the first way you are actually in the directory that contains the script and I suspect the conf file as well.

When you do it the second way you are not, thus the script does not know where to find the script.

You try writing a script such as:
Code:
#!/bin/sh
cd /usr/share/edna
./edna.py &


Just a thought :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 8:56 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Sounds like the script either isn't smart enough to find the config file anywhere other than the current directory or needs an environment variable set to help it. Read the code, look for where it opens the file (in Python source search for either "open" or "file" ...), and see if it's just "edna.conf". A smart script will either go to the right directory on their own (search for "chdir"), or open things using full path names...

OBTW - Girkers bandaid script is also the type of "fix" I use when dealing with OP dumb code that I can't just correct.


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Thu Jan 19, 2006 9:08 pm 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
Thanks guys.. I actually did both, and now it works!! YAY!!!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu