T.R | Title | User | Personal Name | Date | Lines |
---|
442.1 | | EASEW2::BARRELL | Steve Barrell, Dublin. | Wed Oct 19 1994 16:19 | 5 |
| Following on with CONSOLE DIALOG, I would eventually like to shutdown a system,
issue a break to get the ">>>" prompt, change the boot device, and then reboot.
Has anyone tried this already before I re-invent a wheel ?
|
442.2 | | CSC32::BUTTERWORTH | Gun Control is a steady hand. | Wed Oct 19 1994 18:39 | 24 |
| >Could it be that the text match is done also on the timestamp?
Nope. The time stamp is not part of the record and is thus not scanned.
What I think is happening here is that the "["'s are messing things up
as "[" is a meta-character and has a special meaning. In these cases
it really isn't necesary to look for the whole line any way as your
just simply acknowledging the prompts with a null string which
really amounts to nothing more than a CR. Sending the character
early won't cause a problem at all. Change your file and get rid of
all characters after and including the "[" character and let us
know how it goes.
>Following on with CONSOLE DIALOG, I would eventually like to shutdown a
>system, issue a break to get the ">>>" prompt, change the boot device, and
>then reboot.
These kinds of operations are what DIALOG was intended for. If it
doesn't work it needs to be reported and fixed.
Regs,
Dan
|
442.3 | How About #? | CSOA1::MANN | Bob Mann | Wed Oct 19 1994 18:44 | 10 |
| Dan,
I've had this problem also waiting for my Cisco prompt:
NOJOB#
Other waits seem OK, any know problems with "#"?
Thanks,
Bob
|
442.4 | | OPG::PHILIP | And through the square window... | Wed Oct 19 1994 18:56 | 21 |
|
You are getting problems because we scan for a regular expression,
and as Dan pointed out [ and ] are regular expression metacharacters,
you will find on Page 8-2 of the user guide a list of the metacharacters
# shows up as one too.
Now, its not documented that the WAIT string is a regular expression,
I will get the documentation fixed for the next release, but, you should
be able to "escape" the metacharacter using the \ character, so in the
two examples here the following should work...
WAIT 10 "How many minutes until final shutdown \[0\] :"
WAIT 10 "NOJOB\#"
Try and let us know if it works, if it doesnt, as Dan said we should
fix it.
Cheers,
Phil
|
442.5 | | EASEW2::BARRELL | Steve Barrell, Dublin. | Thu Oct 20 1994 12:21 | 16 |
| I used the \ to bypass the [ and ] metacharacters and my dialog
script now works ok.
Now for the next bit, can dialog send a control-p to halt
the system, or do I need to specify an event, scan, action routine, etc.,
to check for the "use console to halt system" string?
Perhaps I need a .COM file to do something like this:
$ define/user sys$command sys$input
$ console connect system/break=ctrl_B
^B
I have not tried this yet - I was hoping someone would have already
tried this and got it to work ?
|
442.6 | | OPG::PHILIP | And through the square window... | Thu Oct 20 1994 14:17 | 15 |
| Steve,
Events, Scans and action routines are not going to help you here!!
Unfortunately, DIALOG will only send what you place on the SEND
line, the next release will allow you to perform a HALT of a system
(either via a control key or the break signal).
Now, it should work if you can get the ascii code for Control-P
embedded in your SEND string, but I have never tried it.
Cheers,
Phil
|
442.7 | "NOJOB\#" Works | CSOA1::MANN | Bob Mann | Thu Oct 20 1994 15:10 | 1 |
|
|
442.8 | | EASEW2::BARRELL | Steve Barrell, Dublin. | Fri Oct 21 1994 11:35 | 13 |
| Re: .6
How does Console Manager send ^P when you answer YES
to the transmit a break prompt?
Is there some magical escape sequence or something that is issued
before the break-signal is sent?
I have tried using ascii codes, but to no avail. I can't even send
the code for Control-Z when the console is logged in and at the DCL prompt.
It just takes the value literally.
|
442.9 | | OPG::PHILIP | And through the square window... | Fri Oct 21 1994 12:00 | 25 |
| Steve,
PCM DOESNT send a Control-P when you transmit a break, it
transmits an RS232 BREAK-SIGNAL. For a further description
of the differences between BREAK and Control-P, please see
the other notes in this conference and RTFM.
If your console wants Control-P, then try this...
Edit your dialog with EDT (EDT 'cos I know what to do with
it) now, in your empty dialog file type the following...
SEND 10 "^P"
^
|
+- You get this by typing <PF1>16<PF1><Keypad-3>
The 16 is entered using the numbers along the
top of the keyboard.
Now try executing the dialog, I hope it works, but, as I
said, I have never tried it.
Cheers,
Phil
|