Unix Shell - Sending special characters to a shell script

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > May 2007 > Sending special characters to a shell script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Sending special characters to a shell script
disco

2007-05-18, 7:17 pm

How would I go about doing this?

Basically I have a script that will hopefully:

1. Re-attach a screen, using screen -x <screen name>
2. Send some commands to the program running in the screen
3. De-attach, using "CTRL + A" and then "D"

The first two steps are fine, but I'm stuck on sending CTRL+A to the shell.

If anybody could help, that'd be great.

Thanks, disco.
Bill Marcum

2007-05-19, 1:20 am

On Fri, 18 May 2007 21:42:39 GMT, disco
<disco@anywherebuthere.com> wrote:
>
>
> How would I go about doing this?
>
> Basically I have a script that will hopefully:
>
> 1. Re-attach a screen, using screen -x <screen name>
> 2. Send some commands to the program running in the screen
> 3. De-attach, using "CTRL + A" and then "D"
>
> The first two steps are fine, but I'm stuck on sending CTRL+A to the shell.
>

Use "screen -d".

--
BOFH excuse #367:
Webmasters kidnapped by evil cult.
disco

2007-05-19, 7:17 pm

Bill Marcum wrote:
> On Fri, 18 May 2007 21:42:39 GMT, disco
> <disco@anywherebuthere.com> wrote:
> Use "screen -d".
>


I can't. The application running in the screen is a server that always
has an open command line, if you see what I mean. Typing screen -d will
do nothing, because the program I am running in that window does not
recognise the command.

Thanks, disco.
disco

2007-05-23, 1:18 pm

disco wrote:
> Bill Marcum wrote:
>
> I can't. The application running in the screen is a server that always
> has an open command line, if you see what I mean. Typing screen -d will
> do nothing, because the program I am running in that window does not
> recognise the command.
>
> Thanks, disco.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com