| Title: | POLYCENTER System Watchdog for VMS OSF/1 ULTRIX HP-UX AIX SunOS |
| Notice: | Wishes:406,FAQ:845,Kits-VMS:1000,UNIX:694 VMS ECO01 FT kit: 521 |
| Moderator: | AZUR::HUREZ Z |
| Created: | Fri May 15 1992 |
| Last Modified: | Fri Jun 06 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 1033 |
| Total number of notes: | 4584 |
Hi,
a customer gets the following error if he configures sns to feed
mcc
SNS version V2.2 running on Ultrix !
here's the log
PSW_MCC_NODE RFUW11
PSW_MCC_COLLECTOR psw_collector
PSW_MCC_ENTITY Domain
PSW_MCC_PROTOCOL UDPIP
[RFUW11::root] /usr/kits/psw/consolidator> psw_feed_mmc -c
Setting PSWX feeder to DECmcc
Checking existense of the following file:
/usr/mcc/mmtoolkit/examples/mmc_evc_send
You need to define which protocol will be used to forward
PSWX messages to DECmcc data collector.
Select either DECNET or UDPIP: UDPIP
To forward PSWX messages to DECmcc data collector, you need
to define on which node this DECmcc data collector is located.
Enter the UDPIP node name where DECmcc collector runs [RFUW11]:
sh: bad substitution
[RFUW11::root] /usr/kits/psw/consolidator>
i'm not very familiar with ultrix or unix
any help appreciated
tx
Manfred
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 1001.1 | replace sh with sh5 ... | AZUR::HUREZ | Connectivity & Computing Services @VBE. DTN 828-5159 | Tue Feb 18 1997 09:11 | 29 |
Oops, it seems that we trusted sh, as on Digital UNIX, instead of sh5,
which should be used on Ultrix instead of the default one which is buggy
on that platform...
Just substitute the first line:
#!/bin/sh
with
#!/bin/sh5
and it will perform those x=${y:-$x} conditional variable substitutions
(reassign x with the value of y only if y is defined) just fine.
FYI, one can debug Bourne shell scripts this way
# sh -evx /usr/software1/psw22/com/psw_feed_mcc
where the -v option is equivalent to $ set verify on VMS,
and the -x one will perform symbols evaluation before the commands
to be executed are displayed...
Sorry for the inconvenience,
-- Olivier.
| |||||
| 1001.2 | MUNICH::KASER | get stoned - drink wet cement !!! | Tue Feb 18 1997 09:59 | 4 | |
Hi Olivier,
many thanks for the fast response
Manfred
| |||||