home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!utcsri!torn!csd.unb.ca!dedourek
- From: dedourek@jupiter.sun.csd.unb.ca (John DeDourek)
- Subject: Summary of responses: Syntax error when installing diskless client
- Message-ID: <1992Sep8.143435.22104@jupiter.sun.csd.unb.ca>
- Organization: University of New Brunswick
- Date: Tue, 8 Sep 1992 14:34:35 GMT
- Lines: 47
-
- On Friday I reported a problem installing a diskless client under AIX 3.2.
-
- henry@aixwiz.austin.ibm.com replied via e-mail suggesting that the problem
- might be related to an invalid parameter entered into the smit screen
- obtained via the "smit mkdclient" command. He suggested entering some
- debugging output (via an "echo" command) in a script in /usr/lib/dwm.
-
- mtimm@auk.UWaterloo.ca reported that he had the problem and it was related
- to the time zone field and suggested not entering a time zone. He reported
- that APAR IX6632 existed for this problem, and the associated fix,
- U405598, did not correct the problem.
-
- I was able to perform some analysis by adding debugging output to a variety
- of scripts in /usr/lib/dwm between the time I received the first and
- second responses. My analysis of the problem is as follows:
-
- When using the "smit mkdclient" command, the resulting screen has a default
- of CST for the time zone entry. If this entry is not changed, its value
- is not passed to the Bourne shell script "mkdclient" which is executed by
- the smit panel. If the entry is changed, a -T'value' argument is passed
- to the mkdclient shell script. I elected to press F4 at this entry in
- smit, which allows choosing from the a list, and I chose my time zone.
- This entered "(AST4ADT)" as the value; this value INCLUDES THE
- PARENTHESES.
-
- Unfortunately, the "mkdclient" shell script calls the dwm_set function,
- defined in /usr/lib/dwm/dwm_functions. At a point in this function
- the line
- eval $ds_prefix$ds_num=$ds_i
- is executed. In my particular case, the result of the shell substitutions
- was
- eval mkd_11=(AST4ADT)
- and I postulate that the unescaped parentheses cause havoc in this shell
- command.
-
- I postulate that one could type the time zone without the parentheses
- rather than using the "select from list" (F4) smit function. Unfortunately,
- I don't know the ramifications of having the time zone entered into
- the configuration without the parentheses. If the parentheses are not
- required, this work around should be sufficient. Otherwise, either the
- point at which the time zone is used must add in the parentheses, or
- a rather extensive fix must be made to the /usr/lib/dwm shell scripts
- to allow parentheses as part of the argument.
-
- John DeDourek
- dedourek@jupiter.sun.csd.unb.ca
-
-