hnyman
January 21, 2024, 7:25am
3
You might try running the problematic script from a detached shell launched from the hotplug script. That might help if you commands actually expect console output/input.
See
Double && means "run next the command after &&", and there should be a command on the line after &&
A single & would mean a detached process to be run on the background.
I have a hunch that you are aiming for either
php-cli -S 192.168.1.1:8088 -t /www &
or
(php-cli -S 192.168.1.1:8088 -t /www )&
which would be a detached shell.
Once of those might work for you if you want to keep the process run even after the script should complete. I would go with the latter version.
Ps. google for …
Try a detached shell:
(/usr/bin/python3 /root/myscript.py -m option1 -r option2 )&
hi guys I would like to start a script on boot
sh /root/sms.sh
on openwrt 19.07.
this script has no end, it reads a file every 2 seconds.
i tried with
#! / bin / sh /etc/rc.common
but it crashes the whole system ..
how can I do ..?