Technical article 109233

OpenServer 5, How do I debug Scoadmin Account?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

The /etc/passwd file was edited manually and then Scoadmin->Account
was run to add a new user. After adding the user, Scoadmin->Account
hangs.  The system must be rebooted to clear the hang.

Solution

To turn on debugging for Scoadmin->Account the VTCL script for
the account manager must be edited.  To do this, edit:
/opt/K/SCO/Unix/5.0.4Eb/sa/account/accountGUI

(Note: The UNIX path is different for 5.0.0Cl, 5.0.2Dp, 5.0.4Eb, 5.0.5Eb, 5.0.6Ga )

Using your favorite editor, modify the accountGUI script. Insert this new line immediately following the "#!/bin/osavtcl" line:

cmdtrace on [ open "/tmp/script.log" a+ ]

(Note: The "/tmp/script.log" can be any path and filename.)

To disable debugging, insert the following after the "#!/bin/osavtcl" line:

cmdtrace off
NOTE:     This logfile can grow to be quite large in a short period of
          time.  Therefore, after viewing the captured information from
          the cmdtrace on command, make sure to use the aforementioned
          command to prevent the debug information from being captured
          and re-directed to the logfile.

See also

The manual pages for scoadmin(F), useradd(ADM), tclX(TCL).

TA104921 "How can I debug SCO Visual Tcl scripts?"

From the Xinuos technical article database, record 109233. Reproduced with permission. The original is at www.sco.com/ta/109233, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.