Hacker News new | ask | show | jobs
by 1vuio0pswjnm7 1066 days ago
For simple tasks, that's how I have always done it.

Alternatively,

   echo ls \"folder name\"|ssh -T host
or

   cat > 1
   ls "folder name"
   ^D

   ssh -T host < 1
1 comments

The last example really looks like perfect case for using `here document` feature.

    ssh -T host <<EOF
    ls "folder name"
    EOF