nohup – prevents the process from receiving SIGHUP (Signal Hang UP) signal ( source).You can кun the script mysql_import.sh in the background (instead of detaching a session) and close the Putty window: cd /var/www Other Solutions 2.1 Run the Process in the Background Please see this post for screen keyboard shortcuts.Ģ. To destroy a session, reattach the session, then press Ctrl A, then K, and then Y. Then you can reattach any session as: screen -r įor example, if the session ID is 1672, then you can reattach it as: screen -r 1672 Type "screen -r tty.host" to resume one of them.Īlso, if you have several detached sessions, you can list them (and their IDs) with: screen -ls There are screens on:ġ2204 ( 02:01:10 AM) (Detached)ġ2204 ( 02:00:17 AM) (Detached)ġ2204 ( 01:22:31 AM) (Detached) If there are several detached sessions, the output would be like this: There are several suitable screens on:ġ2204 ( 02:01:11 AM) (Detached)ġ2204 ( 02:00:18 AM) (Detached)ġ2204 ( 01:22:32 AM) (Detached) To reattach the detached session: screen -r Check that the process is still running: ps -aux | grep mysql_import Press Ctrl A and then D to detach the session.Īlso, please see this post on detaching sessions.Ħ.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |