<?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: Using scripts in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957443#M21124</link>
    <description>Thank you tprince for the reply. As per your suggestion I installed the 'cygwin'. Now when I click on the icon it opens up a dos window with pwd dpaul. I copied my script file 'input.txt' in that directory; but now when I type input.txt it comes with error message- BASH: @input.txt command not found. I used chmod 777 to have execute privilege.Also ./input.txt says bad interpreter. I remember I had similar problem with Linux and I was able to execute a file by ./ and also by adding export PATH=$PATH:. I shall appreciate if could suggest something.</description>
    <pubDate>Thu, 12 Jul 2001 00:13:37 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-07-12T00:13:37Z</dc:date>
    <item>
      <title>Using scripts</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957441#M21122</link>
      <description>I have an appliction (Fortran) which needs to generate an input file. In VAX and Unix environments the input file is generated using scripts. I wonder whether there is any such thing in pc environment either in window itself or in Visual Fortran(C++) using dialog box, console or any other means. Few lines from the script application is included: &lt;BR /&gt; &lt;BR /&gt;&lt;FONT size="+0"&gt;&lt;PRE&gt;
if (-e /tmp/linfile$$) rm -f /tmp/linfile$$ 
touch /tmp/linfile$$ 
if (-e /tmp/loutfile$$) rm -f /tmp/loutfile$$ 
w "Specify identifier for this session (up to 80 characters)" 
set label = $&amp;lt; 
w $label &amp;gt;&amp;gt; /tmp/linfile$$ 
tr '[a-z]' '[A-Z]' &amp;lt; /tmp/linfile$$ &amp;gt; /tmp/loutfile$$ 
set label = `cat /tmp/loutfile$$` 
 
w  enter  '0' to exit .......................... '1' to print volume attenuation 
w  enter  '2' to plot ocean sound speed ........ '3' to plot rays 
w  enter  '4' to print the eigenrays ........... '5' to print prop loss vs range 
w  enter  '6' to plot prop loss vs range ....... '7' to plot pressure vs range 
w  enter  '8' to generate prop loss contours ... '9' to generate pressure contours
&lt;/PRE&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 06 Jul 2001 23:13:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957441#M21122</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-07-06T23:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using scripts</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957442#M21123</link>
      <description>My preference is to build and run under cygwin, which supports bash, sh, tcsh, and pdksh.(  &lt;A href="http://www.sourceware.cygnus.com" target="_blank"&gt;http://www.sourceware.cygnus.com&lt;/A&gt; ) MKS may be preferred if a fully supported ksh is required.  I've gone so far as to run MPI Fortran programs under tcsh on Windows.  No, scripts don't run as fast as on linux.</description>
      <pubDate>Sat, 07 Jul 2001 05:39:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957442#M21123</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2001-07-07T05:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using scripts</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957443#M21124</link>
      <description>Thank you tprince for the reply. As per your suggestion I installed the 'cygwin'. Now when I click on the icon it opens up a dos window with pwd dpaul. I copied my script file 'input.txt' in that directory; but now when I type input.txt it comes with error message- BASH: @input.txt command not found. I used chmod 777 to have execute privilege.Also ./input.txt says bad interpreter. I remember I had similar problem with Linux and I was able to execute a file by ./ and also by adding export PATH=$PATH:. I shall appreciate if could suggest something.</description>
      <pubDate>Thu, 12 Jul 2001 00:13:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957443#M21124</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-07-12T00:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using scripts</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957444#M21125</link>
      <description>Bash on cygwin has the same path considerations as on linux.  Unless you are on Win2K or XP, there are no file permissions.  Cygwin recognizes an executable script and the processor which is to run it by the usual first line notation &lt;BR /&gt;!#/bin/sh &lt;BR /&gt;or whatever.  Only sh, bash, and tcsh are supported (ksh if you install pdksh).  cygwin doesn't come with csh aliased to tcsh, as linux does, but you could add that. &lt;BR /&gt; &lt;BR /&gt;Other possibilities, which could amount to overkill, include one of the perl implementations, including the one in cygwin, or active-state perl. &lt;BR /&gt; &lt;BR /&gt;Sorry, I just realized my answer of several days ago didn't make it to the forum.</description>
      <pubDate>Sun, 15 Jul 2001 08:17:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-scripts/m-p/957444#M21125</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2001-07-15T08:17:26Z</dc:date>
    </item>
  </channel>
</rss>

