Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Ubuntu 

SSH - Problem with Command Line

nohup perl scipt.pl &

should put the script in background and keep it running after the SSH session is closed.
Maybe perl script didnt end so you cant do anything.
Try to open new ssh from putty - one more, so you can connect and killall to close it for example.
Maybe it will be helpful
(Oct 27, 2014 03:39 PM)GamingManiac Wrote:  Install screen (Not sure on your distro)

Once installed run
Code
$ screen

Run your script
Code
$ ./script.pl

then to exit Press Ctrl + a then d

this will detach screen from the session, returning you to your original prompt. To reattach run
Code
$ screen -r

Using screen for this purpose isn't the best way to do it. You can use pre installed tools such as, nohup, fg, bg instead.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ReplaceNov 10, 2025 09:50 PM 4 235 Nov 10, 2025 09:50 PM
Last Post: Replace
by EtheriJan 16, 2025 10:22 AM 5 417 Jan 16, 2025 10:22 AM
Last Post: Etheri
by Ki11MachJan 4, 2019 07:12 PM 2 127 Jan 4, 2019 07:12 PM
Last Post: Ki11Mach