[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

1035.0. "Help needed in writing scripts" by 48243::MENICACCI () Thu Oct 12 1995 07:50

	Hi,

a customer wrote the following script ... and I'm not very familiar with this
kind of stuff.


console$UNLOCK_CLICHY.script contains :

	UNLOCK CLICHY
	EXIT

Then he wrote the following procedure :

	my_unlock_clichy.com contains :


	$ console monitor/noinit
         unlock_clichy
	$ exit
	$ console archive/noconf /keep=1
	$ exit


1) problem 

when run interactively,  you have to hit a character to get unlock_clichy to be
executed (if no character is hit you wait on console monitor/noinit)

why ?

A consequence is that you can't use my_unlock_clichy.com in batch mode.

2) when a character is hit, the unlock is executed but the archive command is
ignored.

Help will be very much appreciated,

Maria. French CSC.


	
T.RTitleUserPersonal
Name
DateLines
1035.129067::BUTTERWORTHGun Control is a steady hand.Fri Oct 13 1995 16:1740
>	my_unlock_clichy.com contains :


>	$ console monitor/noinit
>         unlock_clichy
>	$ exit
>	$ console archive/noconf /keep=1
>	$ exit


>1) problem 

>when run interactively,  you have to hit a character to get unlock_clichy to be
>executed (if no character is hit you wait on console monitor/noinit)

>why ?
    
    Because Monitor is an SMG application it is not designed to be run in
    a command file or in batch. The DIALOG facility was created for just
    such things as your trying to do. Your customer needs to create a
    DIALOG file that does the things he wants to do. See the documentation
    fo complete info.

>A consequence is that you can't use my_unlock_clichy.com in batch mode.

>2) when a character is hit, the unlock is executed but the archive command is
>ignored.
    
    Thats because you used $EXIT after the UNLOCK_CLICHY command so the
    procedure exited before running your archive command. 
    
    Regs,
      Dan

Help will be very much appreciated,

Maria. French CSC.


	
1035.2console dialog is OK48243::MENICACCIMon Oct 16 1995 11:1716
	Hi, 

thanks for your explanation ...

I modified the customer procedure this way :

	$ console dialog/file=my_unlock.dialog  my_system
	$ console archive my_system


with my_unlock.dialog just containing : UNLOCK.


It works very well (interactively and in batch mode).

Maria.