April 14, 201313 yr I would like to create a user script to start Headphones via unMENU rather than a telnet session. I understand the very basics of this so I have created a script with the right name and number so this now appears in unMENU and I can select it. The basic code I need it to run is; python /mnt/cache/_headphones/Headphones.py –d So far the script I have looks like this; #define USER_SCRIPT_LABEL Start Headphones #define USER_SCRIPT_DESCR This will start the Headphones daemon echo "<pre>" python /mnt/cache/_headphones/Headphones.py –d This doesn't work though and I'm at a bit of a loss as to where I start I'm sure this is quite basic but most of the other scripts I look at call another script based in "/etc/rc.d/unraid.d/rc.unraid_example start" and are far more complicated.
April 14, 201313 yr Author Typical, sorted it myself just after posting this Found another post that shows how to run the script manually to test from the prompt. Did this and found an error in the python line due to copy/paste via windows. Used mcedit to tidy up the script and it now works perfectly
Archived
This topic is now archived and is closed to further replies.