Posts by Daniel41550
-
-
Code
echo "(sleep 10 && /storage/urserver-3.6.0.745/urserver --daemon)&" > /storage/.config/autostart.sh
^ that should work as long as the /full/path/to/urserver is valid. It waits 10 seconds and then executes the command in the background. If you don't background the task the process will be correctly killed on script exit.
It didn't automatically start, but whenever I ran "sh /storage/.config/autostart.sh" it worked perfectly, as if the program only worked if ran from a terminal. Is there any way I can get around this?
-
I am trying to run an executable that has output, but is disabled when passed a certain argument. Running the command in the terminal through ssh works perfectly, but putting it in autostart.sh, running a python script to run the executable in autoexec.py, or using an sh to start the python script doesn't work. Is there a way that I can get this file to work in autostart? The file that I am trying to do this with can be found here: http://www.unifiedremote.com/d/linux-x64-portable, and I used this command to run it ./urserver-3.6.0.745/urserver --daemon. I think the file is ran, but it is closed whenever the autostart is finished, but I am not sure why or how to prevent this from happening.