For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > August 2006 > read/execute a file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author read/execute a file
ganesh

2006-08-23, 4:00 am

hi all
i compile some fortran subroutines to create .o files and then create
an executable file called 'main' using following command. (hp unix)
" f90 -o main mainmod.o main.o addstf.o dcoup.o impedance.o
sourcnods.o thdfe.o calban.o der3ds.o inputj.o redvk.o st4r8.o
trifac.o damper.o fnct.o solstp.o step.o"

each time when i want to create the main.exe file i need to write the
whole thing at the command prompt.
is it possible to save this text in a txt file and read/call/execute
this txt file to execute the command/contents in it?

many thanks for help

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com