PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Sending special characters to a shell script
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Sending special characters to a shell script

Réponse
 
LinkBack Outils de la discussion
Vieux 18/05/2007, 22h42   #1
disco
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sending special characters to a shell script

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 , that'd be great.

Thanks, disco.
  Réponse avec citation
Vieux 19/05/2007, 06h20   #2
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sending special characters to a shell script

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.
  Réponse avec citation
Vieux 19/05/2007, 21h41   #3
disco
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sending special characters to a shell script

Bill Marcum wrote:
> 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".
>


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.
  Réponse avec citation
Vieux 23/05/2007, 15h29   #4
disco
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sending special characters to a shell script

disco wrote:
> Bill Marcum wrote:
>> 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".
>>

>
> 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.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h01.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11738 seconds with 12 queries