Print

Print


Hi

Pete wrote:
>Is it possible to execute shell commands in F90?  For example, 
>in order to time how fast a program is running, I would like to
>execute the shell comand 'date' from within the program  periodically 
>and output this to a file.
Not if want to hold to strict F90.
However many compilers support the routine SYSTEM which does the trick.
On a VMS system you can use lib$spawn. Another possibility is to call
system from a C-routine.

BTW your example is ill-chosen since time/date support is available
in standard F90 (DATE_AND_TIME)

    JJ


>------------------------------------------------------------------------------<

  Jouk Jansen
		 
  [log in to unmask]



  Technische Universiteit Delft        tttttttttt  uu     uu  ddddddd
  Nationaal centrum voor HREM          tttttttttt  uu     uu  dd    dd
  Rotterdamseweg 137                       tt      uu     uu  dd     dd
  2628 AL Delft                            tt      uu     uu  dd     dd
  Nederland                                tt      uu     uu  dd    dd
  tel. 31-15-2781536                       tt       uuuuuuu   ddddddd

  Universitair Centrum Antwerpen     rrrrrr   uu    uu    ccc       aa
  EMAT                               rr   rr  uu    uu   cc cc     aaaa
  Groenenborgerlaan 171              rr  rr   uu    uu  cc        aa  aa
  2020 Antwerpen                     rrrrr    uu    uu  cc       aaaaaaaa
  Belgie                             rr rr    uu    uu   cc cc  aa      aa
  tel 32-32180261/518                rr  rr    uuuuuu     ccc  aa        aa

>------------------------------------------------------------------------------<



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%