Guest User

Untitled

a guest
Aug 5th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Why is bash stopping processing the script
  2. (echo "ssh hans@mymachine.com echo hello" ; echo 'echo Done')
  3.  
  4. ssh hans@mymachine.com echo hello
  5. echo Done
  6.  
  7. (echo "ssh hans@mymachine.com echo hello" ; echo 'echo Done') > a.sh
  8.  
  9. . ./a.sh
  10.  
  11. Warning: No xauth data; using fake authentication data for X11 forwarding.
  12. hello
  13. Done
  14.  
  15. (echo "ssh hans@mymachine.com echo hello" ; echo 'echo Done') | bash
  16.  
  17. Warning: No xauth data; using fake authentication data for X11 forwarding.
  18. hello
  19.  
  20. ssh hans@mymachine.com echo hello
  21. echo $?
  22.  
  23. Warning: No xauth data; using fake authentication data for X11 forwarding.
  24. hello
  25. 0
  26.  
  27. trap "" ERR
  28.  
  29. ( echo "(" ; echo "ssh hans@mymachine.com echo hello" ; echo 'echo Done'; echo ")" ) | bash
  30.  
  31. Warning: No xauth data; using fake authentication data for X11 forwarding.
  32. hello
  33. Done
Add Comment
Please, Sign In to add comment