Linux scripting tutorial part 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
496 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Sep 22, 2011

Linux scripting tutorial part 2: running programs from within a script. Parameter sweep for programs which have input files

example_run_program.sh
#!/bin/bash
# 20110918 Ben Payne ben.is.located@gmail.com
./no_input.lex

no_input.f90
program simp
implicit none
write(*,*) 'program ran correctly'
end program simp


multiple_inputs.f90
program testola
implicit none
integer :: line_indx, num_args
real*8 input_arg
open(125,file='read_from_me.input')
read(125,*) num_args
do line_indx=1,num_args read(125,*) input_arg write(*,*) input_arg
enddo
end program testola

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more