Timeline for nohup: failed to run command 'source': No such file or directory error while runnşng nohup?
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 2 at 12:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| May 16 at 1:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jan 9 at 18:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Aug 26, 2024 at 13:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jul 22, 2024 at 20:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Mar 24, 2024 at 13:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| May 25, 2023 at 5:23 | answer | added | mikem | timeline score: 0 | |
| May 24, 2023 at 21:45 | comment | added | Paul_Pedant |
source is not an external command. It is a shell built-in, and nohup needs an external command to run. If a.sh is on your PATH list, is executable, and has a shebang, that by itself is the command, like nohup a.sh. That is the proper way to do it. Otherwise, nohup bash a.sh will run a.sh even if it is not executable, and will ignore any shebang. If a.sh is not in PATH, you will need to run it as ./a.sh or add whatever full pathname it is on. Note that nohup does not mean anything useful unless you also run it in background.
|
|
| May 24, 2023 at 20:54 | comment | added | heyula | What can I use instead of source | |
| May 24, 2023 at 20:08 | comment | added | ilkkachu |
Why are you using source there? It means to execute the named script in the same shell, but since you're starting an external command (screen or nohup) anyway...
|
|
| S May 24, 2023 at 19:43 | review | First questions | |||
| May 30, 2023 at 17:40 | |||||
| S May 24, 2023 at 19:43 | history | asked | heyula | CC BY-SA 4.0 |