talkto_menow Posted July 11, 2012 Share Posted July 11, 2012 I created some shell scripts for rsync . I can run it using telnet, however I would prefer to use custom user button in unMenu. I followed examples available in unMenu folder and tried to execute script, but nothing happens Here is my button: #define USER_SCRIPT_LABEL Rsync #define USER_SCRIPT_DESCR Sync Files /boot/custom/rs.sh Please help Link to comment
Joe L. Posted July 11, 2012 Share Posted July 11, 2012 I created some shell scripts for rsync . I can run it using telnet, however I would prefer to use custom user button in unMenu. I followed examples available in unMenu folder and tried to execute script, but nothing happens Here is my button: #define USER_SCRIPT_LABEL Rsync #define USER_SCRIPT_DESCR Sync Files /boot/custom/rs.sh Please help First, make sure the script does not have ms-dos style carriage returns at the ends of the lines. Then, what happens when you press the button? Link to comment
talkto_menow Posted July 11, 2012 Author Share Posted July 11, 2012 How do I check for ms-dos style carriages? I used Notepad to create script, when I run in telnet, script is executed and log file is saved. Now when I press button, there is short message "Waiting for Tower" at the bottom of the screen and that's it. No log file and nothing is synced Link to comment
Joe L. Posted July 11, 2012 Share Posted July 11, 2012 How do I check for ms-dos style carriages? I used Notepad to create script, when I run in telnet, script is executed and log file is saved. Now when I press button, there is short message "Waiting for Tower" at the bottom of the screen and that's it. No log file and nothing is synced http://lime-technology.com/wiki/index.php/FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F The script must complete and all output from both standard output and standard error output be completed and their file descriptors closed before unRAID will return the result. If your process runs for 10 minutes, it will be 10minutes before it unRAID returns the output to your browser. If you do not want to wait, you'll need to write a script that will detach itself from the parent process. (possibly put itself in the background and dosown it, or use the "at" command) Link to comment
mbryanr Posted July 11, 2012 Share Posted July 11, 2012 Notepad±± is preferred. Sent from my SAMSUNG-SGH-I897 using Tapatalk 2 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.