<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ksh problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554138#M886589</link>
    <description>No real way to do that, other than what's already been said.  But one place I worked always did this with scripts (and, c programs for that matter):&lt;BR /&gt;&lt;BR /&gt;At the head of the script, define the path to the data files:&lt;BR /&gt;&lt;BR /&gt;  datapth=/db/test&lt;BR /&gt;  #datapth=/db/real&lt;BR /&gt;&lt;BR /&gt;The path to the "live" data is commented-out.&lt;BR /&gt;&lt;BR /&gt;All references in the script use the variable to point to the data.&lt;BR /&gt;&lt;BR /&gt;So, while you write and debug your script you are using test data.&lt;BR /&gt;&lt;BR /&gt;Then, to put the script into production, swap the comment tothe other path setting.&lt;BR /&gt;&lt;BR /&gt;Fred</description>
    <pubDate>Wed, 18 Jul 2001 16:25:29 GMT</pubDate>
    <dc:creator>Fred Martin_1</dc:creator>
    <dc:date>2001-07-18T16:25:29Z</dc:date>
    <item>
      <title>ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554130#M886581</link>
      <description>I wonder how to trace a ksh script line by line but without actually executing the commands.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jul 2001 05:03:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554130#M886581</guid>
      <dc:creator>Ricky Tang</dc:creator>
      <dc:date>2001-07-18T05:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554131#M886582</link>
      <description>hi,&lt;BR /&gt;"ksh -n script" does a syntax check of your script without executing it; not perfect, but something to begin with ;)&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Wed, 18 Jul 2001 05:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554131#M886582</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-07-18T05:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554132#M886583</link>
      <description>If you put a "set -x" at the beginning of a script, you will get a trace of the script to stdout. Of course the commands will still be executed. Here is an example: &lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;set -x &lt;BR /&gt;&lt;BR /&gt;A="Hello World!"&lt;BR /&gt;echo $A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The output when executing the script is: &lt;BR /&gt;&lt;BR /&gt;+ A=Hello World!&lt;BR /&gt;+ echo Hello World!&lt;BR /&gt;Hello World!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Carsten&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jul 2001 07:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554132#M886583</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-07-18T07:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554133#M886584</link>
      <description>Hi Carsten,&lt;BR /&gt;&lt;BR /&gt;The point is I do not want to&lt;BR /&gt;execute the script, just parsing it.  Any idea?</description>
      <pubDate>Wed, 18 Jul 2001 07:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554133#M886584</guid>
      <dc:creator>Ricky Tang</dc:creator>
      <dc:date>2001-07-18T07:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554134#M886585</link>
      <description>If you want to check your script for syntax errors, use the -n option (as stated by Thierry).  If you just want to see the statements without executing them, use the 'cat' command ;)&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jul 2001 08:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554134#M886585</guid>
      <dc:creator>Laurent Paumier</dc:creator>
      <dc:date>2001-07-18T08:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554135#M886586</link>
      <description>Maybe I should make my question more clearly.&lt;BR /&gt;What I want is something &lt;BR /&gt;like a debugger which can&lt;BR /&gt;show me the actual command&lt;BR /&gt;after filename and variable&lt;BR /&gt;expansions; but without &lt;BR /&gt;actually executing the &lt;BR /&gt;command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jul 2001 08:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554135#M886586</guid>
      <dc:creator>Ricky Tang</dc:creator>
      <dc:date>2001-07-18T08:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554136#M886587</link>
      <description>I think we don't have that debug tool</description>
      <pubDate>Wed, 18 Jul 2001 09:10:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554136#M886587</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2001-07-18T09:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554137#M886588</link>
      <description>Hi Ricky&lt;BR /&gt;&lt;BR /&gt;What you could do is create a temp dir with appropiate file in it and point your script at this area, this of course depends upon your script.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Wed, 18 Jul 2001 09:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554137#M886588</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-07-18T09:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554138#M886589</link>
      <description>No real way to do that, other than what's already been said.  But one place I worked always did this with scripts (and, c programs for that matter):&lt;BR /&gt;&lt;BR /&gt;At the head of the script, define the path to the data files:&lt;BR /&gt;&lt;BR /&gt;  datapth=/db/test&lt;BR /&gt;  #datapth=/db/real&lt;BR /&gt;&lt;BR /&gt;The path to the "live" data is commented-out.&lt;BR /&gt;&lt;BR /&gt;All references in the script use the variable to point to the data.&lt;BR /&gt;&lt;BR /&gt;So, while you write and debug your script you are using test data.&lt;BR /&gt;&lt;BR /&gt;Then, to put the script into production, swap the comment tothe other path setting.&lt;BR /&gt;&lt;BR /&gt;Fred</description>
      <pubDate>Wed, 18 Jul 2001 16:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554138#M886589</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-07-18T16:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: ksh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554139#M886590</link>
      <description>You can create a function like &lt;BR /&gt;echodo ( echo "$*" }&lt;BR /&gt;&lt;BR /&gt;You can assign a variable x = "echodo" and prefix every command with the $x variable. To turn it off just set x="" (null) and commands will run.</description>
      <pubDate>Wed, 18 Jul 2001 21:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-problem/m-p/2554139#M886590</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2001-07-18T21:53:14Z</dc:date>
    </item>
  </channel>
</rss>

