<?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: RUNNING A COMMAND IN FOTRAN in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755834#M101726</link>
    <description>We use system().  One way is&lt;BR /&gt;&lt;BR /&gt;character*80 command&lt;BR /&gt;....&lt;BR /&gt;command = '/usr/local/bin/myprog'&lt;BR /&gt;call system(command)&lt;BR /&gt;&lt;BR /&gt;You can also build commands in the program:&lt;BR /&gt;&lt;BR /&gt;command = 'cat ' // someFileName&lt;BR /&gt;&lt;BR /&gt;or even in the argument:&lt;BR /&gt;&lt;BR /&gt;call system('cat ' // someFileName)&lt;BR /&gt;&lt;BR /&gt;The FORTRAN 9000 manual says system() is a libU77 routine. We don't have to invoke a compiler directive, but we do have to link the library (though it may come in automatically). The only linker options I use regularly are&lt;BR /&gt;&lt;BR /&gt;-lfsys -lm&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Mar 2006 17:19:53 GMT</pubDate>
    <dc:creator>Michael D. Zorn</dc:creator>
    <dc:date>2006-03-22T17:19:53Z</dc:date>
    <item>
      <title>RUNNING A COMMAND IN FOTRAN</title>
      <link>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755830#M101722</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Does anyone know how to run a command in FOTRAN  i.e. the same way the statment "system" does in ANSI C. Pls advise.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Henry&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Mar 2006 10:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755830#M101722</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2006-03-21T10:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: RUNNING A COMMAND IN FOTRAN</title>
      <link>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755831#M101723</link>
      <description>Henry,&lt;BR /&gt;according to &lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B3908-90003/B3908-90003.pdf" target="_blank"&gt;http://www.docs.hp.com/en/B3908-90003/B3908-90003.pdf&lt;/A&gt;&lt;BR /&gt;the system(str) command should get you want you need, at least on hp using fortran90.</description>
      <pubDate>Tue, 21 Mar 2006 10:27:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755831#M101723</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-21T10:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: RUNNING A COMMAND IN FOTRAN</title>
      <link>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755832#M101724</link>
      <description>Hi Henry, &lt;BR /&gt;&lt;BR /&gt;Here it is, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.codecomments.com/archive271-2005-3-429704.html" target="_blank"&gt;http://www.codecomments.com/archive271-2005-3-429704.html&lt;/A&gt;&lt;BR /&gt;System commands only added in Fortran 2003. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 21 Mar 2006 10:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755832#M101724</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-21T10:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: RUNNING A COMMAND IN FOTRAN</title>
      <link>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755833#M101725</link>
      <description>Yes there is a 3F system function in addition to the more common 3C system for C.&lt;BR /&gt;Man 3F system for details.</description>
      <pubDate>Tue, 21 Mar 2006 10:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755833#M101725</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-21T10:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: RUNNING A COMMAND IN FOTRAN</title>
      <link>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755834#M101726</link>
      <description>We use system().  One way is&lt;BR /&gt;&lt;BR /&gt;character*80 command&lt;BR /&gt;....&lt;BR /&gt;command = '/usr/local/bin/myprog'&lt;BR /&gt;call system(command)&lt;BR /&gt;&lt;BR /&gt;You can also build commands in the program:&lt;BR /&gt;&lt;BR /&gt;command = 'cat ' // someFileName&lt;BR /&gt;&lt;BR /&gt;or even in the argument:&lt;BR /&gt;&lt;BR /&gt;call system('cat ' // someFileName)&lt;BR /&gt;&lt;BR /&gt;The FORTRAN 9000 manual says system() is a libU77 routine. We don't have to invoke a compiler directive, but we do have to link the library (though it may come in automatically). The only linker options I use regularly are&lt;BR /&gt;&lt;BR /&gt;-lfsys -lm&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Mar 2006 17:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/running-a-command-in-fotran/m-p/3755834#M101726</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2006-03-22T17:19:53Z</dc:date>
    </item>
  </channel>
</rss>

