3 ms·
It's a weird way of writing ssh -t user@example.com /bin/bash < my-setup-script.sh That is, take the contents of the local file 'my-setup-script.sh' and run
by falsedan 9y ago
It's a weird way of writing
ssh -t user@example.com /bin/bash < my-setup-script.sh
That is, take the contents of the local file 'my-setup-script.sh' and run them as commands on example.com as the 'user' user (using SSH to authenticate the user & transport the commands).
- iso-8859-1 9y agoBut that might fail half-way through the file, and the other one is all or nothing, might just report "argument list too long".
- falsedan 9y ago> might fail half-way through the file Oh, while transferring! ssh -t user@example.org bash <( echo "function do_it() {"; cat my-setup-script.sh; echo -e "}\ndo_it" ) No argument limits to worry about, no quoting hassles.