How to open process again in linux terminal?

omega

From my home pc using putty, I ssh'ed into a remote server, and I ran a python program that takes hours to complete, and as it runs it prints stuff. Now after a while, my internet disconnected, and I had to close and re-open putty and ssh back in. If I type 'top' I can see the python program running in the background with its PID number. Is there a command I can use to basically re-open that process and see it printing its stuff again?

Thanks

Thomas Dickey

As noted, best practice is to use screen or tmux (before starting the program, so you do not need to ask this question).

But you can also attach to a running process with a debugger such as gdb (alluded to here as ddd, a wrapper for gdb), as well as with strace (see this question). That's better than nothing - but gdb and strace would not give you the program's command-line again (though this question suggests a way). At least strace could give you some clues of what the program was attempting to print.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to open process again?

From Dev

How to open a process from terminal without becoming child process?

From Dev

How to open terminal window for debug output in Linux?

From

How to open linux terminal from BIOS

From Dev

How to open an .png type image in Linux terminal?

From Dev

How to access open terminal with running process using SSH?

From Dev

Open Edge in a new process and kill it again

From Dev

How to know the process of the terminal which is running in Linux command?

From Dev

How to open Android studio without terminal on Linux 16.04

From Dev

vscode python linux: how to automatically open terminal in right venv?

From Dev

How to open a terminal from the terminal

From Java

Open Linux terminal command in PHP

From Dev

open a man page in linux terminal

From Dev

Linux - Open terminal for input/output

From Dev

How to open terminal in idea?

From

How to open a terminal on WebStorm?

From Dev

How to open terminal in dolphin?

From Dev

How to open terminal on Xubuntu?

From Dev

How to open a root terminal

From Dev

How to open the gnome terminal?

From Dev

How can I determine what process has a file open in Linux?

From Dev

How to pass arguments to an already open terminal via System.Diagnostics.Process()

From Dev

How can I open the output of a backround process in terminal under Windows 10?

From Dev

How to disable a gameObject such that it does not open again when starting the game again

From Dev

Linux Terminal : Process that ends with a specific name

From Dev

How to process terminal command arguments?

From Dev

How to kill an orphan Terminal process

From Dev

How can I transfer a process from a terminal on my linux PC to an SSH portal terminal on the other side of my house?

From Dev

linux pseudo terminal (open select read)

Related Related

  1. 1

    How to open process again?

  2. 2

    How to open a process from terminal without becoming child process?

  3. 3

    How to open terminal window for debug output in Linux?

  4. 4

    How to open linux terminal from BIOS

  5. 5

    How to open an .png type image in Linux terminal?

  6. 6

    How to access open terminal with running process using SSH?

  7. 7

    Open Edge in a new process and kill it again

  8. 8

    How to know the process of the terminal which is running in Linux command?

  9. 9

    How to open Android studio without terminal on Linux 16.04

  10. 10

    vscode python linux: how to automatically open terminal in right venv?

  11. 11

    How to open a terminal from the terminal

  12. 12

    Open Linux terminal command in PHP

  13. 13

    open a man page in linux terminal

  14. 14

    Linux - Open terminal for input/output

  15. 15

    How to open terminal in idea?

  16. 16

    How to open a terminal on WebStorm?

  17. 17

    How to open terminal in dolphin?

  18. 18

    How to open terminal on Xubuntu?

  19. 19

    How to open a root terminal

  20. 20

    How to open the gnome terminal?

  21. 21

    How can I determine what process has a file open in Linux?

  22. 22

    How to pass arguments to an already open terminal via System.Diagnostics.Process()

  23. 23

    How can I open the output of a backround process in terminal under Windows 10?

  24. 24

    How to disable a gameObject such that it does not open again when starting the game again

  25. 25

    Linux Terminal : Process that ends with a specific name

  26. 26

    How to process terminal command arguments?

  27. 27

    How to kill an orphan Terminal process

  28. 28

    How can I transfer a process from a terminal on my linux PC to an SSH portal terminal on the other side of my house?

  29. 29

    linux pseudo terminal (open select read)

HotTag

Archive