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.

To Install
#yum install screen

To initiate

to list how many screens running::
#screen -ls

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 -X kill

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s