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

Conference azur::mcc

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

2373.0. "Ultrix status code not handled properly by mcc_dap" by PHONE::CDUNN (Feedback is the Breakfast of Champions!) Wed Feb 19 1992 14:52

	In building make files to update my data dictionary I find that even on success the
value of status is non-zero. To reproduce this:

% mcc_dap
DAP> exit
$ echo $status
9

	Since 9 is non-zero MAKE see it as an error and aborts the rest of the make.
I have added a .IGNORE: to my make file but then all errors are ignored. Any idea how to
turn on error recognition after DAP is done? Also, have I missed something here or is this
a real problem? Thanks for any help you can lend!

									-Charlie

T.RTitleUserPersonal
Name
DateLines
2373.1On a related note...PHONE::CDUNNFeedback is the Breakfast of Champions!Wed Feb 19 1992 15:1527
	On a related note, I am trying to do effectivly the following:

% mcc_dap update class KSC from mcc_btam_ksc_srvc_if.com

	but mcc_dap does not read the argv list. I have tried:

% mcc_dap `echo update class KSC from mcc_btam_ksc_srvc_if.com`

	but mcc_dap does not read from standard input this way either..
	What worked was:

% mcc_dap <update_cmds

	where update_cmds contains the update commands I want.. What I
	would like to be able to do is put the update commands right into 
	the make file so I dont have to keep and maintain this extra file
	that contains the commands. Any ideas how to do this? I am VERY
	new to Ultrix/Unix (just took the intro course last week) so if
	I am missing something obvious please excuse my novice perspective...
	Thanks for any light you can shed!

	(BTW, anyone know what the Ultrix equivalent of NOTES is called? Both for
	DECwindows and character cell versions... Thanks! )

								-Charlie

2373.2- (echo delete x ; echo load x ) | mcc_dapTAEC::LAVILLATThu Feb 20 1992 03:2419
Re .1:

You can try something like that :

temip_ah_fm_srvc_if.loaded : temip_ah_fm_srvc_if.com
        - ( echo delete class operation_context ; \
            echo load class operation_context \
	from temip_ah_fm_srvc_if.com ) | mcc_dap -
        cp /dev/null temip_ah_fm_srvc_if.loaded
                                                                

Note that the delete command will not be needed any more with the new version
of the UPDATE DAP command (using V1.2) (See Note MCC #?.?)

Regards.

Pierre.

2373.3Good idea!PHONE::CDUNNFeedback is the Breakfast of Champions!Thu Feb 20 1992 10:1319
	A very good idea.. I like that... In reading appendix  B of the Toolkit Guide I
found somthing like the following:

	echo update class KSC from $(KSC_FILE) >dap_cmds
	echo update class MSC from $(MSC_FILE) >>dap_cmds
	echo update class GNS from $(GNS_FILE) >>dap_cmds

etc, etc followed by

	mcc_dap <dap_cmds

	Works well and keeps the commands in the same file.. Amazing what can happen when
	I RTFM! :-)  Anyway, the key at this point is how to hand the setting of error
	status even after success by mcc_dap...

	Thanks for your help!

									-Charlie
2373.4Fixed in baselevel x1.2.16...DFLAT::PLOUFFEJerryThu Feb 20 1992 17:0028
RE: .0 & .3

  DAP's "return status" problems have been fixed in baselevel x1.2.16.  This 
  baselevel is well after the v1.2 EFT kit and is after the recently announced
  baselevel 15 kit.

  What kit do you have installed?

RE: .1

  The correct syntax is:

    mcc_dap -c "update class KSC from mcc_btam_ksc_srvc_if.com"

  This syntax is limited to one command only, so I prefer the:
 
    (echo delete x ; echo load x ) | mcc_dap

  format specified in .2 myself.

RE: .2

  The note referring to (which describes the changes to the UPDATE command)
  is note 2289.0.

Hope this helps...

                                                                   - Jerry
2373.5Sounds great!PHONE::CDUNNFeedback is the Breakfast of Champions!Wed Feb 26 1992 11:5510
	We are running V1.2.4 on Ultrix 4.2 (Rev 96), so we dont
have the fix yet. No problem, I'll just remove the .IGNORE in our
makefile after we install the version that has the fix.. For now
I will probably leave the makefile as it is for MCC_DAP. It works
and there's other things more important to handle.. But, I do appreciate
your posting the info about -c! I didn't realize that was there!
Guess I missed that in the doc.. Thanks for your help! 

							-Charlie