added model c hange
This commit is contained in:
@@ -60,3 +60,31 @@ Here are the two best ways to do this.
|
||||
```bash
|
||||
tail -f job_output.log
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Method 3: Rescuing a Running Job (The `disown` Method)
|
||||
**Use this if:** You already started the wizard or script in a normal terminal and now realize you need to disconnect without killing it.
|
||||
|
||||
1. **Pause the running job:**
|
||||
Inside the terminal where the script is active, press **`Ctrl` + `Z`**.
|
||||
* The script will pause, and you'll see: `[1]+ Stopped ...`
|
||||
|
||||
2. **Move it to the background:**
|
||||
Type the following command and press Enter:
|
||||
```bash
|
||||
bg
|
||||
```
|
||||
* The script will resume running in the background.
|
||||
|
||||
3. **Disown the job:**
|
||||
Tell the terminal to "forget" about the job so it doesn't kill it when you disconnect:
|
||||
```bash
|
||||
disown -h %1
|
||||
```
|
||||
*(Note: Use `%1` if your job number was `[1]`, `%2` if it was `[2]`, etc.)*
|
||||
|
||||
4. **Disconnect:**
|
||||
You can now type `exit` or close your SSH window. The job will continue on the server.
|
||||
|
||||
**Warning:** Unlike `tmux`, you cannot "reattach" to see the progress bar again. You must monitor the logs in the `logs/` folder to check its status.
|
||||
|
||||
Reference in New Issue
Block a user