sh1ntomi wrote: > I am trying to execute a shell script using squeezecli following the > steps laid out in 'this' > (https://forums.slimdevices.com/showthread.php?78259-Playlist-quot-Macro-quot-URL-Commands-Maybe-Kidsplay&p=543452&viewfull=1#post543452) > thread . I was hoping to see the results in the server logs to determine > the correct "secret" value, but I dont see the entry coming up in the > log. > > > Code: -------------------- > > squeezecli:secret=123456789012&p0=script.sh&p1=stop -------------------- > > > > Any guidance on executing shell script would be helpful. Thanks.
A few things if you're using my SqueeezeCLIHandler: * you want to use *squeezeexec:* to execute a script (squeezecli: is just for executing LMS CLI commands, intended to be useful in playlists but maybe not, as last time I checked the playlist scanner effectively skipped squeezecli: URLs) * you probably need to give the full path to "script.sh" unless it's in a directory (like /usr/local/bin?) that's already in the PATH of the LMS process * set the SqueeezeCLIHandler log level to Warn or Debug and view the server log if you still have trouble (the plugin defaults to Error, which isn't verbose enough to help much for configuration problems) * I assume you're trying to pass the single command line argument "stop" to your "script.sh", right? * depending on where that URL is going the "&" might not need to be escaped owner of the stuff at https://tuxreborn.netlify.app/ (which used to reside at *www. tux.org/~peterw/*) Note: The best way to reach me is email or PM, as I don't spend much time on the forums. *Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock ------------------------------------------------------------------------ peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=78259 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
