SUMMARY: Korn Shell Execution in verbose mode

From: Adolf, Christopher (cadolf_at_sandia.gov)
Date: 01/27/05

  • Next message: Joohyun Cha: "SUMMARY: Moving disk slice."
    Date: Wed, 26 Jan 2005 16:29:43 -0700
    To: sunmanagers@sunmanagers.org
    
    

    I wanted to thank everyone who offered suggestions. Because of them I was
    able to see what I needed to.

    So, quick summary:

    I need to parse through a script to get the exact syntax of a command it is
    running. Unfortunately the script is written with functions.

    ksh -vx will give me the output processing of the scripts, but doesn't give
    the output processing of the functions inside the script. Does anyone know a
    way to tell it to give that information to me as well.

    Solutions:

    I can place a "set -vx" internal to the functions. This approach worked
    wonderfully!
    Someone also suggested there is a version of ksh made for debugging that you
    can possibility get from the OS vendors.

    Thanks again for everyones help!
    Chris
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Joohyun Cha: "SUMMARY: Moving disk slice."

    Relevant Pages

    • Re: VG mirroring
      ... Host level migration of EMC frames for HPUX. ... hpux.vgclean - Per volume group clean-up script. ... Initialize the tables by running "ksh hpux.start". ... Look at inq.*.txt to see what devices come from what frame. ...
      (comp.unix.admin)
    • Re: [Long] about ksh93 (Was: Bourne Shell Programming on Windows)
      ... :>: Are you saying that David Korn is an unitiated or ignorant ksh ... :> won't be called in a script. ... :> in every shell. ... that should be teached in every shell programming book. ...
      (comp.unix.shell)
    • Re: vi horizontal split screen
      ... I'm an old ksh hacker, but bash will do fine. ... I started on the SysV R2 Bourne shell, and used csh for a better ... Several ksh improvements were designed to make it faster and more efficient at processing scripts, and one way to do that was substitute built-ins for external commands called from the script. ...
      (comp.editors)
    • Re: A couple of scripting queries
      ... This gets you /usr/local/bin/date, which is gnu date. ... ksh and bash definitely do and probably other newer bourne shells like ... in the script, ... I don't think you actually need any arrays anyways. ...
      (comp.unix.sco.misc)
    • Re: Ksh output garbled/out-of-sync
      ... is starting to look like a problem withksh. ... affected systems and running the test script). ... It turned to be a bug in ksh. ...
      (comp.unix.solaris)