<?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: batch file vs. shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625261#M920219</link>
    <description>Jane:&lt;BR /&gt;&lt;BR /&gt;You can download cygwin (which provides shell functionality under windows environment - NT etc.) &lt;A href="http://www.cygwin.com/" target="_blank"&gt;http://www.cygwin.com/&lt;/A&gt; &lt;BR /&gt;it is a really really good set of programs.  check it out.</description>
    <pubDate>Tue, 04 Dec 2001 21:19:22 GMT</pubDate>
    <dc:creator>Kofi ARTHIABAH</dc:creator>
    <dc:date>2001-12-04T21:19:22Z</dc:date>
    <item>
      <title>batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625259#M920217</link>
      <description>Hi all,&lt;BR /&gt;I wrote a VB program to process some excel data files, those data files are in a specified directory E:\sims, I would like to have a NT batch file whick check the directory, if there are some excel files, it invoke the VB program to process the excel file one by one, it no excel file, do not do anything.&lt;BR /&gt;In shell, this is easy to get around by the following code.&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;INFILE_PATH=/home/janez/sims&lt;BR /&gt;for each in ${INFILE_PATH}/*&lt;BR /&gt;do&lt;BR /&gt;  if [ -f $each ]&lt;BR /&gt;  then&lt;BR /&gt;  VBprocess $each&lt;BR /&gt;  rm -f $each&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;Can anybody help me to have a batch file? &lt;BR /&gt;Thanks a lot,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Dec 2001 20:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625259#M920217</guid>
      <dc:creator>jane zhang</dc:creator>
      <dc:date>2001-12-04T20:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625260#M920218</link>
      <description>jane,&lt;BR /&gt;&lt;BR /&gt;Get perl for NT! &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.perl.com/pub/a/language/info/software.html#win32" target="_blank"&gt;http://www.perl.com/pub/a/language/info/software.html#win32&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 04 Dec 2001 21:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625260#M920218</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-12-04T21:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625261#M920219</link>
      <description>Jane:&lt;BR /&gt;&lt;BR /&gt;You can download cygwin (which provides shell functionality under windows environment - NT etc.) &lt;A href="http://www.cygwin.com/" target="_blank"&gt;http://www.cygwin.com/&lt;/A&gt; &lt;BR /&gt;it is a really really good set of programs.  check it out.</description>
      <pubDate>Tue, 04 Dec 2001 21:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625261#M920219</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2001-12-04T21:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625262#M920220</link>
      <description>Sounds like what you really want to do is&lt;BR /&gt;run a Bourne/Korn/POSIX shell script on&lt;BR /&gt;an NT machine.&lt;BR /&gt;&lt;BR /&gt;Have a look at Cygwin (&lt;A href="http://www.cygwin.com)." target="_blank"&gt;http://www.cygwin.com).&lt;/A&gt;&lt;BR /&gt;It provides a nice Unix-like environment under&lt;BR /&gt;Windows, including the GNU bash shell.  Your&lt;BR /&gt;Bourne/Korn/POSIX scripts ought to work fine&lt;BR /&gt;under bash. Cygwin almost makes NT&lt;BR /&gt;usable :-).&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Dec 2001 21:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625262#M920220</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2001-12-04T21:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625263#M920221</link>
      <description>If it were me I would download ActivePerl for NT from &lt;A href="http://www.activeperl.com." target="_blank"&gt;http://www.activeperl.com.&lt;/A&gt; It's free and all you need a loop with a system() call to invoke your VB program within a loop.&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Dec 2001 21:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625263#M920221</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-12-04T21:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625264#M920222</link>
      <description>If the excel files all end in *xls extension:&lt;BR /&gt;&lt;BR /&gt;e:&lt;BR /&gt;for /r %i in (\sims\*.xls) do VBProcess %i&lt;BR /&gt;del \sims\*.xls&lt;BR /&gt;&lt;BR /&gt;NT shell scripting is not fun. Actually very frustrating for an Unix admin as it is pretty barbaric.  If you have a lot of NT scripting to do and don't want to use perl or cygwin, then I'd get a copy of the book:  Windows NT Shell Scripting by Tim Hill (Macmillan Technical Publishing) Its a very good reference for NT commands and scripting.</description>
      <pubDate>Tue, 04 Dec 2001 21:48:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625264#M920222</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-12-04T21:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625265#M920223</link>
      <description>Hi all,&lt;BR /&gt;Thank you for the reponses, I decide to switch to perl since I found out we can perl application available and I heard before perl is similiar to unix shell(correct?) &lt;BR /&gt;it would be nice of you giving me sample code for this SIMPLE task? &lt;BR /&gt;Regards,&lt;BR /&gt;Jane</description>
      <pubDate>Wed, 05 Dec 2001 00:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625265#M920223</guid>
      <dc:creator>jane zhang</dc:creator>
      <dc:date>2001-12-05T00:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625266#M920224</link>
      <description>Hi all,&lt;BR /&gt;I just figure out the simple solution for my proble.&lt;BR /&gt;a simple batch file with the following content is good enough&lt;BR /&gt;echo on&lt;BR /&gt;for  %%i in (e:\sims\*.xls) do sims.exe  %%i &lt;BR /&gt;&lt;BR /&gt;especially thank bernie for the hint. &lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 02:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625266#M920224</guid>
      <dc:creator>jane zhang</dc:creator>
      <dc:date>2001-12-05T02:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: batch file vs. shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625267#M920225</link>
      <description>Thanks Jane.  I forgot to mention that my example was running the command directly from the shell.  For some strange Microsoft reason, when commands are in a batch file, it needs an extra % before the variables.</description>
      <pubDate>Fri, 07 Dec 2001 19:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-file-vs-shell-script/m-p/2625267#M920225</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-12-07T19:03:57Z</dc:date>
    </item>
  </channel>
</rss>

