[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: send commands to screen that is in ssh session
From: |
Toby Matejovsky |
Subject: |
Re: send commands to screen that is in ssh session |
Date: |
Sun, 29 Aug 2010 13:58:03 -0400 |
That worked perfectly, thanks.
It also works with ^M instead of ^j (Ctrl-v enter)
On Sat, Aug 28, 2010 at 10:05 AM, Kevin Van Workum
<address@hidden> wrote:
> Try screen -S foo -X stuff "echo hello world^j"
>
> You insert the ^j with the 'Ctrl-v Ctrl-j' key sequence in bash. It has to
> be inside the quotes.
>
> On Thu, Aug 26, 2010 at 12:54 PM, Toby Matejovsky
> <address@hidden> wrote:
>>
>> I'm trying to send a command to a screen which is also in an ssh session.
>>
>> terminal 1:
>> screen -S foo
>>
>>
>> terminal 2:
>> screen -S foo -X exec echo hello world # terminal 1
>> executes "echo hello world" as expected
>> screen -S foo -X exec ssh address@hidden # terminal 1 shows a
>> successful login
>> screen -S foo -X exec echo hello world # terminal 1
>> shows "Filter address@hidden", and nothing happens
>>
>>
>> This seems like some kind of security thing, but I don't see anything
>> about filters in the manual. How can I send commands to screen to
>> achieve an ssh login and then execute commands in that screen session
>> which are executed on the remote server?
>>
>> Thanks
>>
>> -Toby
>>
>> _______________________________________________
>> screen-users mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/screen-users
>
>