At work, I have lot's of interactive scripts running that I would like to access them later on from home. If I do Ctrl+Z to them and then bg, then I am able to use them from home using the fg command. However, I usually forget to put them in the background. Can I resume them later on (from Home) knowing just their PID or something ?
How to resume a process from an SSH connection?
process
Can I resume them later on (from Home) knowing just their PID or something ?No, since the scripts are tied to the terminal from which you run them.However, you can run your scripts inside tmux or screen.  You can then detach tmux / screen from the terminal, and re-attach to it later from home.  This one of the main use cases for tmux and screen.