Yota
Very Senior Member
If the script relies on interaction over SSH (for example there is an API that allows you to log into SSH via a desktop script and then trigger checks and automatic updates/or as shown in your screenshot, it has a user interface) then retained nohup will be necessary.Is there harm in keeping nohup? The reason I ask is if I call/run the script from SSH shell like the below and select option 2:
View attachment 53492
it won't work unless I have nohup right now, it does the download and then quits the sessons and fails, however if I have nohup and select 2, it does the download and completes the flash successfully.
it makes me wonder about any future implementations if we remove it.
Edit: i understand when the cron calls the run_now function directly it may not be needed, but when about when a user first configures? etc?
But if it's going to be a purely non-interactive script, where updates will only be triggered by custom scripts and cron, then nohup may be redundant. and, I'm not sure when nohup became available again because it never worked in my memory (2017-2023).
nohup does nor work, am I doing something wrong?
So I am trying to run a script all the time, it is a simple thing just checking if a mobile is connected to wifi. It works as long as I am online (with putty). Logout and it stops direct. So I start with: nohup /bin/sh /jffs/scripts/CheckIfHome2 & Am I doing something wrong here or is nohup...
www.snbforums.com
In addition, I suggest splitting the user interaction part and the core functional part of the script into different scripts. However, it is worth pointing out that if one script calls another script in an SSH session, the parent process is still dropbear. Even if & is used, the script running in the child process will be killed when the SSH session is ended.
EDIT:
Edit: i understand when the cron calls the run_now function directly it may not be needed, but when about when a user first configures? etc?
That would be the first case, in which case nohup or cron jobs would be required. But I'm not sure how many users will log into SSH to trigger the update? Why don't they upload the firmware directly through the GUI? I think most people who use auto-update are trying to make it easier on themselves.
Last edited: