123 reputation
115
bio website
location
age
visits member for 1 year, 9 months
seen Nov 20 at 11:04

Apr
20
awarded  Famous Question
Sep
30
awarded  Notable Question
Sep
17
awarded  Supporter
Aug
19
awarded  Popular Question
Apr
26
awarded  Informed
Apr
25
awarded  Scholar
Apr
25
accepted Putty: run a remote command after login & keep the shell running
Apr
25
comment Putty: run a remote command after login & keep the shell running
Works now! Thank you!
Apr
25
comment Putty: run a remote command after login & keep the shell running
Meanwhile, I tried to start mc. :-) It didn't, and provided some output: Cannot get terminal settings: Invalid argument (22) TERM environment variable needs set.
Apr
25
comment Putty: run a remote command after login & keep the shell running
I tried that (adding /bin/bash to cmd.txt) and that does not work. As far as I understand, bash starts in non-interactive mode and, having no code to execute, exits. Is there a way to start an interactive shell that way?
Apr
25
revised Putty: run a remote command after login & keep the shell running
edited tags
Apr
25
comment Putty: run a remote command after login & keep the shell running
Emacs & tramp are irrelevant here, I added that just for the background. That's not about editing file in emacs, that's about opening a shell to do something else with that file (e.g. run a script). I'm tired of "start putty, choose you host, then cd to the path you need", and want to automate that.
Apr
25
awarded  Student
Apr
25
asked Putty: run a remote command after login & keep the shell running