That's fine, and here is what I really want for how to execute,
the fortran program is called as work, so I run it as ./work and it prompts.
I would like to parse arguments as follows
./work 1 events.lhe dec-events.lhe ta- 5
so I either need to modify the original fortran program (work) or need another simple script (lets say script executable) which reads arguments from command line as above and use work executable to operate with its arguments.
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
OK, I think I understand. Usually scripts that manipulate and do some parameter processing are called wrappers, which is what the last script do-all-files was.
I'll work on the new wrapper, probably later this morning or early afternoon ... cheers, drl
---------- Post updated at 10:26 ---------- Previous update was at 09:30 ----------
Hi.
Here is script s2. It's a driver for wrapper script "w1", which collects the command-line arguments and places them in a here document for Fortran-compiled code "work" to process. Of course, "work" is a simulation of your program, it just reads and prints the input parameters from STDIN (usually the keyboard, but now from the here document), no calculations are done.
producing:
Please look this over, try to understand it, and apply to your Fortran code work.
Hi ,
I want to find all Pro *C executables in a directory say /.
When i fire file command on Pro*c file it gives below o/p
ELF-64 executable object file - PA-RISC 2.0 (LP64)
my system is HP-UX eux012 B.11.23 U 9000/800 151107499 unlimited-user license
but when i fire file on a C... (2 Replies)
Hello Unix users, this is my first post here. :)
I want to search a directory (and subdirectories) for executable files (files with rwx------ permission) and move them to a different folder. What Unix commands can accomplish this? (2 Replies)
Hi,
I'm trying to compile Apache2.2 (I know it is available as a package) on a fresh install of Solaris Express 11. I've installed gcc-3 and gnu-bintutils via pkg. The config.log is attached (as config.txt). I don't see what I'm missing.
Thanks,
Doug (1 Reply)
Hi - I have two complex (for me at least) make files. The older one creates a succesful executable. The later one uses if statements to conditionally make different versions of the executable. The 2nd produces an executable that fails. I have "eyeballed" the differences in the Make files and run... (18 Replies)
I want to search executable files after a particular time and date ,
i.e.
in a folder if a file has been accessed,modified or changed after a particular date and time ,then that file should be listed , and current date and time should be stored in a file so that when i again run the script ,it ... (6 Replies)
Hi,
I have written a shell script for automating some of our repetitive activities. I want all my colleagues to use my script and do the activities automatically by just running the script.
But I do not want them to see the code. Is there a way we can generate something like an executable... (16 Replies)
hi,
I am getting error when trying to create binaaries for Xerces C++
error is
configure:error:installation:cofihuration error:compiler cant create executables
???????????
Thanks in advance im using AIX flavour of IBM
Im using ./configure command to create binaries.Its saying c... (6 Replies)
Hi All,
I m very new to unix.
I have a basic doubt ..
In unix I m seeing that there is a * at the end of by executable name (exe1*)..
Wht is the significance of that
Thanks a lot in advance (2 Replies)
I am trying to install PROFTPD-1.2.7 on a SCO OpenServer 5.0.6 Server with a gcc-2.95.2 installed the VOLS files from http://www.caldera.com/skunkware.
The problem I am having is when I try to run ./configure in the proftpd directory I get this error:
# ./configure
checking build system... (6 Replies)
I know I can run the cksum command for multiple files in a directory and send the results to a new file.
EX.)
# cd /usr
# cksum *_ex* > /tmp/cksumusr.txt
But I can't figure out how to run this command on multiple files in all directories on drive. Is it possible to do this, without having... (2 Replies)