August 6, 201312 yr Hi guys, I am running plex on unraid successfully. I use xbmc for local, and plex for remote playback. And I use trakt.tv to synchronize the watch status between the two. The only issue I am having is that the trakt.tv plugin in plex does not have scheduled runs. I am trying to achieve that through curl as a cronjob. I can run a trakt.tv sync by using the following link (took it from the plex web interface, replaced sensitive info with x's): http://192.168.1.xx:32400/web/index.html#!/servers/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/channels?key=%2Fapplications%2Ftrakttv&path=%2Fapplications%2Ftrakttv%2Fmanuallytrakt Can a linux guru help me run this through curl so I can scheudle sync jobs? (If I simply paste it into a browser, it works) When I try to do "curl http://192.168.1.xx:32400/web/index.html#!/servers/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/channels?key=%2Fapplications%2Ftrakttv&path=%2Fapplications%2Ftrakttv%2Fmanuallytrakt" I get the following error: "-bash: !/servers/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/channels?key=%2Fapplications%2Ftrakttv: event not found" Thanks
August 6, 201312 yr you need to wrap the curl in quotes or escape the special characters used by the shell.
August 6, 201312 yr Author Thanks I had kept trying to wrap it in double quotes and kept getting the error single quotes worked. However, I guess the page requires javascript and curl doesn't do js Thanks
Archived
This topic is now archived and is closed to further replies.