C:\Program Files\SABnzbd>ftp -s:updatelibrary.scr
Error opening script file updatelibrary.scr.
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
Hi, I am trying to run this script on OSX. I have set up Username and password ans webaccess in the settings of XBMC. Running the script from terminal reports no error but nothing seems to happen and it end really quickly. If i check my XBMC video library. Am I misunderstanding something? Is this only working after a file is processed out of SABNZB? There are new folders in the category directories of SABNZB that XBMC does not have in the lib yet.
Thanks for the answer. Yeah the script is executable I just cant set my path to the xbmc command in my localhost so in the browser it does not run. I read the whole thread it’s a script that I really would like to work.
Traceback (most recent call last):
File "cherrypy/_cprequest.pyc", line 618, in respond
File "cherrypy/_cperror.pyc", line 233, in __call__
NotFound: (404, "The path '/xbmcCmds/xbmcHttp' was not found.")
I cant find that xbmcCmds folder on my Mac.
Last edited by roads on March 9th, 2010, 12:59 am, edited 1 time in total.
roads wrote:
I just cant set my path to the xbmc command in my localhost so in the browser it does not run
I'm not sure what you mean here. Is XBMC running on the same machine or different ?
Is it the latest version of XBMC ?
Have you tried removing the username and password from XBMC ?
Is port 8080 in use by something else like SAB ? Try another port in XBMC
If you can not get it working with the browser, then the scripts are not going to work either.
see my edit above I removed the user pass and the script runs on same machine so i took localhost. Yes it’s the latest stable build of XBMC. I am just too dumb to find the directory I guess where the command is.
This is ment to also run on the same machine right?
There is no directory for these commands, its all built into the XBMC Web Server HTTP API.
By default SAB uses port 8080, try a different port in XBMC.
and test with a simple command like http://localhost:[port]/xbmcCmds/xbmcHttp?command=Getvolume() which should return the current volume in the browser window.
Dumb question, but the XBMC Web Server is enabled ?
And yes, they all can run on the same machine, you just need to watch the port numbers.
Last edited by JohnSCS on March 9th, 2010, 1:14 am, edited 1 time in total.
Thanks John that was the probem SAB beeing on the same Port as XBMC. Thanks very much for helping! I thought this would work with XBMC being off. Any possibility to make this happen?
Maybe start it up minimized if not running, update and close it down again if it was not running.
That would be great for people who run xbmc on the same machine as SABNZB.
Last edited by roads on March 9th, 2010, 1:55 am, edited 1 time in total.
I know notifications will not come thru if XBMC is minimized (they appear when XBMC is restored), so I assume the same for library updates. Testing will prove this. Starting XBMC minimized may be the answer because XBMC starts the library update itself.
I run SAB & XBMC on the one machine which is dedicated to Home Theatre, and hence runs XBMC 24/7. The other option is just let XBMC do the library update when it starts - slower start up but simpler on shared machines.