Re: Sending Control-T to Terminal
Re: Sending Control-T to Terminal
- Subject: Re: Sending Control-T to Terminal
- From: Jeffrey Berman <email@hidden>
- Date: Fri, 27 Sep 2002 19:36:30 -0500
On Fri, 27 Sep 2002, Helmut Fuchs <email@hidden> wrote:
>
> Jeffrey, I guess using AppleScript is the wrong approach here. There
>
are better, more transparent and more reliable ways to keep ssh
>
sessions alive.
>
>
In the configuration of my shell CTRL-T maps to "transpose
>
characters" - this may differ for different shells and may be
>
annoying, if the cursor is in the middle of a line.
Helmut:
My SSH connection is to a machine running VMS, where the response to
Control-T is to issue a process status line without altering text on the
current command line. However, because the "do script" command in Terminal
adds a line feed, any text on the command line is also transmitted.
>
For now you could try to add "-o KeepAlive=yes" to your invocation of
>
ssh - which should work in most cases.
Ah, this would be a far more elegant solution. I have been trying to solve
the problem in AppleScript because I know little of UNIX. I checked the man
pages on my machine for SSH and found a reference to the -o switch but I
could not find any material on the "KeepAlive" option. Do you know where
this option might be explained either in the man pages or from a URL on the
Internet?
>
And if you are not opening the ssh-session yourself, you could write
>
a shell script that outputs anything (maybe the BEL) to STDERR in
>
defined intervals, and run it in the background of your session.
Unfortunately, this suggestion is well beyond my limited UNIX knowledge.
>
If none of the above works for you, I guess the best solution would
>
be to ask on an ssh-mailing-list on the best way to keep a
>
ssh-session alive.
If I knew enough about UNIX to ask the question, I would. In any case,
thanks for taking the time to respond. I'll give the "Keep Alive" option a
try and see if anyone can figure out a way to suppress the line feed of the
"do script" command.
-Jeffrey Berman
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.