Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Personal goto method is with heredocs:

  ssh ${TARGET_COMPUTER} << EOF
    echo "$USER"
    echo "\$USER"
    uptime
    nproc
    w
    last
  EOF


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: