Running a command instead of a shell (e.g., ssh user@hostname echo 'this thing')

142 views
Skip to first unread message

Michael Staib

unread,
Sep 21, 2012, 4:41:00 PM9/21/12
to chromiu...@chromium.org
Is there any support for this? I tried putting it into the argument list, but Secure Shell just died while connecting to the target. (Probably because it went into the flags before the user@hostname, and was taken as user@hostname itself.)

If not, call this a feature request. :)

Incidentally, unlike the [ENTER] Connect button, the [DEL] Delete button does nothing. And since Chromebooks lack a delete key (guess Freakazoid's going to have to stay normal)...

On the upside, I learned that Alt+Backspace is Delete on Chromebooks :D

-- Michael

Robert Ginda

unread,
Sep 21, 2012, 4:53:30 PM9/21/12
to Michael Staib, chromium-hterm
You can place your command on the other side of a double-dash.  For example, my editor connection profile has the ssh arguments, "-t -- screen -DARRS emacs-session".  This launches right into screen, forcibly resuming any existing session.  It's mighty mighty.

DEL should delete the connection profile when the profile name (up at the top, in the list) has focus.  When the Identity field has focus, it should delete the identity.  Is it not doing working for you in both cases?


Rob.

Michael Staib

unread,
Sep 21, 2012, 5:01:15 PM9/21/12
to Robert Ginda, chromium-hterm
Aaahhh, so you can! :) Good to know, thanks! (And yeah, that's exactly the use case I had for it, perfect.)

Delete (the key) does work, but clicking the button doesn't do anything regardless of where the focus was. I suspect this is because the profile list isn't focused anymore when the button becomes focused, and the click is processed after that. (If it's processed at all - I guess I'm not sure if it is a button or just a similarly-styled focusable label.)

j...@google.com

unread,
Mar 7, 2013, 10:33:33 PM3/7/13
to chromiu...@chromium.org, Robert Ginda
For future readers who find this thread like I did, looking for how to send a proper Alt+Backspace from a Chromebook via hterm, note that I documented a workaround for Bash and Emacs users to getting the behavior they're used to in this bug: http://crbug.com/174410

Cheers,
Jói
Reply all
Reply to author
Forward
0 new messages