[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
|
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
5498.0. "More problems with SCRIPT am" by STKHLM::BERGGREN (Nils Berggren EIS/Project dpmt, Sweden DTN 876-8287) Wed Aug 18 1993 04:35
Hi,
Having a lot of problems with the SCRIPT-AM
I've looked thru the topics regarding scripts, I don't think this
is related to any of the problems mentioned.
1. The script doesn't return 'Unknow entity' when requesting
information regarding a child entity which has not been created,
instead SCRIPT tries to execute the child-entity name as a
DCL-command....
2. Using DECmcc from DCL (like '$ MANAGE/ENTER SHOW ...')
doesn't work like expected. One part has to do with UPPER/lower
case but the other part is that I don't get the same results when
running mcc from DCL as interactively.
Attached log shows the problems:
Comments after '!###'
############################ item 1. ################################
$ mcc :== "manage/enter" !### define MCC-symbol
$ mcc
DECmcc (V1.3.0)
MCC> register script .xyz !### register a new script global entity
Script SE_NS:.xyz
AT 12-AUG-1993 16:27:57
Registration successful.
!### create a Command child entity
MCC> create script .xyz command system_time command @show_system_time
Script SE_NS:.xyz COMMAND system_time
AT 12-AUG-1993 16:32:08
Script created successfully.
!### try it out
MCC> show script .xyz command system_time all status
Script SE_NS:.xyz COMMAND System Clock:
AT 12-AUG-1993 16:33:09 Status
Examination of attributes show:
Command Executed = "@show_system_time"
arg1 = "the time is"
arg2 = "16:33:09.68"
!###
!### Now try to show the status for a
!### non-existing child entity
!###
MCC> show script .xyz command this_do_not_exist all status
Script SE_NS:.xyz COMMAND this_do_not_exist
AT 12-AUG-1993 16:34:21 Status
The script has reported an error condition.
Erroring Command = "this_do_not_exist",
Error Text = "%DCL-W-IVVERB, unrecognized command
verb - check validity and spelling
"
!###
!### shouldn't we get "No such entity:" ???
!### like we get when doing:
MCC> show node4 hnp object wrong_name
Using default ALL IDENTIFIERS
Node4 SE_NS:.tvt.c.han.n4.hnp Object wrong_name
AT 12-AUG-1993 16:37:33 Identifiers
No such entity: Node4 hnp Object wrong_name
Unknown Entity = Node4 hnp Object wrong_name
!### Furthermore, when using an entity-name
!### which exists as a valid DCL-command
!### (or defined DCL-symbol) the command is
!### executed. I have a symbol declared as:
!### SAY_HELLO ==
!### "WRITE SYS$OUTPUT "Hello there, how are you""
MCC> sho script .xyz command say_hello
Using default ALL IDENTIFIERS
Script SE_NS:.xyz COMMAND say_hello
AT 13-AUG-1993 13:38:34 Identifiers
No such entity: Script SE_NS:.xyz COMMAND say_hello
Unknown Entity = Script SE_NS:.xyz COMMAND say_hello
MCC> sho script .xyz command say_hello all status
Script SE_NS:.xyz COMMAND Hello
AT 13-AUG-1993 13:38:38 Status
Examination of attributes show:
Command Executed = "say_hello"
arg1 = "there,"
arg2 = "how"
arg3 = "are"
arg4 = "you"
################### item 2. ############################
!####################################
!### Use MCC from DCL-level ###
!####################################
$ mcc dir Script * !### look what scripts we have
DECmcc (V1.3.0)
Script SE_NS:.tvt.c.han.nm-system
AT 13-AUG-1993 12:31:18
Directory successful.
Name = SE_NS:.tvt.c.han.nm-system
$ mcc register script .abc !### Register a new one
DECmcc (V1.3.0)
Script SE_NS:.ABC
AT 13-AUG-1993 12:31:36
Registration successful.
!### Create a Time child instance
$ mcc create script .abc time hnt command "@tixnet$com:get_time_diff hnt"
DECmcc (V1.3.0)
Script SE_NS:.ABC Time HNT
AT 13-AUG-1993 12:32:07
Script created successfully.
!### test it
$ mcc show script .abc time hnt all status
DECmcc (V1.3.0)
Script SE_NS:.ABC Time HNT
AT 13-AUG-1993 12:32:27 Status
Examination of attributes show:
Command Executed = "@tixnet$com:get_time_diff hnt"
Hours = 0
Minutes = 0
Seconds = 0
Tenths = 4
$ mcc show script .abc time * !### Look what Time-scripts we have
DECmcc (V1.3.0)
Using default ALL IDENTIFIERS
Script SE_NS:.ABC Time HNT
AT 13-AUG-1993 12:32:43 Identifiers
Examination of attributes show:
Name = HNT
!##############################
$ mcc !### Run interactive DECmcc ###
DECmcc (V1.3.0) !##############################
MCC> show script .abc time * !### Look what Time-scripts we have
Using default ALL IDENTIFIERS
Script SE_NS:.abc Time *
AT 13-AUG-1993 12:32:56 Identifiers
No such entity: Script SE_NS:.abc Time *
Unknown Entity = Script SE_NS:.abc Time *
!###
!### Why don't we see it??????
!###
!###
!### create a new Time instance from
!### within DECmcc
!###
MCC> create script .abc time knp command "@tixnet$com:get_time_diff knp"
Script SE_NS:.abc Time knp
AT 13-AUG-1993 12:33:14
Script created successfully.
MCC> show script .abc time knp all status !### test it
Script SE_NS:.abc Time KNP
AT 13-AUG-1993 12:33:27 Status
Examination of attributes show:
Command Executed = "@tixnet$com:get_time_diff knp"
Hours = 0
Minutes = 0
Seconds = 0
Tenths = 8
!### Works OKEY
MCC> show script .abc time * !### Look what Time-scripts we have NOW
Using default ALL IDENTIFIERS
Script SE_NS:.abc Time knp
AT 13-AUG-1993 12:33:39 Identifiers
Examination of attributes show:
Name = knp !### were's the hnt-script????
MCC> exit
!###
!### exit to DCL
!###
$ mcc show script .abc time * !### Look what Time-scripts we have
DECmcc (V1.3.0)
Using default ALL IDENTIFIERS
Script SE_NS:.ABC Time HNT
AT 13-AUG-1993 12:33:52 Identifiers
Examination of attributes show:
Name = HNT !### where's the knp-script???
!###
!### When starting the IMPM and adding the script .abc into a domain
!### and looking into it, there's only the 'knp' Time-instance.
!### If I pick up the toolbox and create a Time-instance with the name
!### 'hnt', I get the form in which to fill in the description, command and
!### so on (so IMPM doesn't recognize the Time-instance hnt); *BUT* if I
!### create a Time-instance with the name 'HNT' IMPM recognizes it and no
!### form to fill in pops up. Shuld it be like this?
!###
T.R | Title | User | Personal Name | Date | Lines
|
---|