home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9438 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.6 KB  |  57 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!utcsri!torn!csd.unb.ca!dedourek
  3. From: dedourek@jupiter.sun.csd.unb.ca (John DeDourek)
  4. Subject: Summary of responses: Syntax error when installing diskless client
  5. Message-ID: <1992Sep8.143435.22104@jupiter.sun.csd.unb.ca>
  6. Organization: University of New Brunswick
  7. Date: Tue, 8 Sep 1992 14:34:35 GMT
  8. Lines: 47
  9.  
  10. On Friday I reported a problem installing a diskless client under AIX 3.2.
  11.  
  12. henry@aixwiz.austin.ibm.com replied via e-mail suggesting that the problem
  13. might be related to an invalid parameter entered into the smit screen
  14. obtained via the "smit mkdclient" command.  He suggested entering some
  15. debugging output (via an "echo" command) in a script in /usr/lib/dwm.
  16.  
  17. mtimm@auk.UWaterloo.ca reported that he had the problem and it was related
  18. to the time zone field and suggested not entering a time zone.  He reported
  19. that APAR IX6632 existed for this problem, and the associated fix,
  20. U405598, did not correct the problem.
  21.  
  22. I was able to perform some analysis by adding debugging output to a variety
  23. of scripts in /usr/lib/dwm between the time I received the first and
  24. second responses.  My analysis of the problem is as follows:
  25.  
  26. When using the "smit mkdclient" command, the resulting screen has a default
  27. of CST for the time zone entry.  If this entry is not changed, its value
  28. is not passed to the Bourne shell script "mkdclient" which is executed by
  29. the smit panel.  If the entry is changed, a -T'value' argument is passed
  30. to the mkdclient shell script.  I elected to press F4 at this entry in
  31. smit, which allows choosing from the a list, and I chose my time zone.
  32. This entered "(AST4ADT)" as the value; this value INCLUDES THE 
  33. PARENTHESES.
  34.  
  35. Unfortunately, the "mkdclient" shell script calls the dwm_set function,
  36. defined in /usr/lib/dwm/dwm_functions.  At a point in this function
  37. the line
  38.       eval $ds_prefix$ds_num=$ds_i
  39. is executed.  In my particular case, the result of the shell substitutions
  40. was
  41.       eval mkd_11=(AST4ADT)
  42. and I postulate that the unescaped parentheses cause havoc in this shell
  43. command.
  44.  
  45. I postulate that one could type the time zone without the parentheses
  46. rather than using the "select from list" (F4) smit function.  Unfortunately,
  47. I don't know the ramifications of having the time zone entered into
  48. the configuration without the parentheses.  If the parentheses are not
  49. required, this work around should be sufficient.  Otherwise, either the
  50. point at which the time zone is used must add in the parentheses, or
  51. a rather extensive fix must be made to the /usr/lib/dwm shell scripts
  52. to allow parentheses as part of the argument.
  53.  
  54. John DeDourek
  55. dedourek@jupiter.sun.csd.unb.ca
  56.  
  57.