Issue :: It was difficult to execute a long task like long duration scripts on a remote machine, which is connected via ssh due to connectivity.
Solution :: Screen, use screen command before executing any long or time taking script. It will continue even if you get disconnected. It is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.
#yum install screen
to list how many screens running::
to resume the screen
#screen -r 6672.pts-0.apoc
Detach the elsewhere running screen (and reattach here).
#screen -d -r 17367.pts-0.hp-dl380g6-01
To kill a screen session detached
#screen -S 22833.pts-4.dell-pe2950-1 -X kill