Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. screen -RD
  2. ./run_script
  3.  
  4. ssh root@server "screen -RD && ./run_script"
  5.  
  6. [root@edge14 ~]# screen -r -X /nfs/ops/component/edge/scripts/move_stuck_aggfiles_to_hadoop.sh && screen -RD
  7. No screen session found.
  8. [root@edge14 ~]#
  9.  
  10. -X Send the specified command to a running screen session. You can
  11. use the -d or -r option to tell screen to look only for attached
  12. or detached screen sessions. Note that this command doesn't work
  13. if the session is password protected.
  14.  
  15. ssh root@server "screen -dr -X ./run_script && screen -RD"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement