Rescanning

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2157
    Anonymous
    Inactive

    Hi

    Does anyone knoe if there is a way to force firefly to rescan the database without going through the web interface or waiting for firefly to do so itself? (perhaps that could be run as a scheduled task or as a command from another program)?

    Thanks

    #16011
    fizze
    Participant

    Yes.
    In Linux and Windows it is as simple as using the “wget” program. You just have to have it access to the rescan-button of the webinterface.

    You can schedul that call by any means you like.
    The exact syntax can be found in this very forums.

    #16012
    Anonymous
    Inactive

    Hmm – the problem I have with this is that the button isn’t attached to a URL, it runs the following java function…

    new Ajax.Request(‘xml-rpc’,{method:’post’,parameters: ‘method=rescan’,onComplete: Updater.rsStartScan});

    My attempts to convert this to a URL have lead me to variances of

    http://localhost:9999/xlm-rpc&method=rescan

    but none of these actually force the server to rescan.

    #16013
    rpedde
    Participant

    @macpanda wrote:

    Hmm – the problem I have with this is that the button isn’t attached to a URL, it runs the following java function…

    new Ajax.Request(‘xml-rpc’,{method:’post’,parameters: ‘method=rescan’,onComplete: Updater.rsStartScan});

    My attempts to convert this to a URL have lead me to variances of

    http://localhost:9999/xlm-rpc&method=rescan

    but none of these actually force the server to rescan.

    That should be:

    http://localhost:9999/xml-rpc?method=rescan

    (or, for a full rescan)

    http://localhost:9999/xml-rpc?method=rescan&full=1

    If you are doing it from a remote system, you may need to use username and password as well:

    http://user:password@localhost:9999?xml-rpc?method=rescan

    — Ron

    #16014
    dovad
    Participant

    I’ve replaced “localhost” with the ip address as I am trying to start the scan from a remote host. Should I see the scan running on the web interface when I run the url?

    Thanks…
    Dave

    #16015
    dovad
    Participant

    Ron,

    I believe you made a small typo in the last example:

    http://user:password@localhost:9999?xml-rpc?method=rescan

    It should be:

    http://user:password@localhost:9999/xml-rpc?method=rescan

    A little thing, a question mark where a slash should be.

    When I type this into the terminal on my Mac I get the error:

    “No such file or directory”

    It does work however from the address bar of a web browser. Is there a way to run a rescan from the terminal of a computer other than the one hosting Firefly?

    Dave

    #16016
    EVILRipper
    Participant

    Yes. The same URL. Just replace “localhost” with the computer’s IP.
    Which is probably:
    Local: 192.168.1.xxx

    #16017
    fizze
    Participant

    *cough*
    You have to use wget with that URL 😉

    #16018
    dovad
    Participant

    Ah, see all that I learn from hanging out with you guys!

    OS X Leopard does not have wget installed by default. Now I’m installing MacPorts and Xcode to be able to install wget. What a story!

    Thanks again…
    Dave

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Add-on Software’ is closed to new topics and replies.