Just a commend from my side. ownCloud should handle things like rescanning of file completely automatic and transparent to the user. So a call from the outside like this should only be important for debugging purposes or very special use cases.
The real solution for this problem is that the gallery detects new files automatically. If this doens´t work than it´s a bug that should be fixed in gallery. :-) Frank On 25.05.2012, at 09:15, eMerzh <[email protected]> wrote: > I'm also interrested in this information : > > How can we do a curl / wget on any page of owncloud > I think that if we try to use a basic auth, we will keep beeing > redirect to the default page (OC_Util::redirectToDefaultPage in > index.php Line 112) > > Is it what we want? > > > > On Thu, May 24, 2012 at 12:04 AM, Thomas Tanghus <[email protected]> wrote: >> On Wednesday 23 May 2012 22:23 Florian Hülsmann wrote: >>> Hi Niko, >>> >>> putting this command into the crontab should do the job: >>> >>> curl -s -L --max-redirs 3 --basic -u 'user:password' >>> 'http://host/owncloud/?app=gallery&getfile=ajax/galleryOp.php&operation=scan >>> ' >>> >>> But I'm not sure why it even redirects... Someone else may provide a >>> better solution. >> >> It seems like http auth is kinda useless now because of all the redirects. I >> have a script to backup contacts and calendars, but on OC4 I get a listing of >> the files instead? >> >> wget --auth-no-challenge --http-user=user --http-password=password \ >> -O file.vcf "http://host/owncloud/?app=contacts&getfile=export.php?bookid=X" >> >> If you run: >> >> curl -L -v --basic -u 'user:password' \ >> 'http://host/owncloud/?app=gallery&getfile=ajax/galleryOp.php&operation=scan' >> >> you can see that it just keeps requesting http://lhost/owncloud/?app=files >> and >> never gets any further. >> >> -- >> Med venlig hilsen / Best Regards >> >> Thomas Tanghus >> _______________________________________________ >> Owncloud mailing list >> [email protected] >> https://mail.kde.org/mailman/listinfo/owncloud > _______________________________________________ > Owncloud mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/owncloud _______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
