- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- script which contains the f90 command with options
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 10:39 PM
07-17-2005 10:39 PM
I work on a HP-UX 11 v.23 system
Would you be so kind to show me some web sites where i could find documentation about unix scripts ?
I am interested in writing a script in order to initialize the fortran compiler with options.
In this way i want to compile multiple sources without being necessary to write at prompter f 90 command with options, instead of it i would like to use a script which contains the f90 command with options.
Please tell me how to do it !!!
Thanks you and best regards.
Solved! Go to Solution.
- Tags:
- f90
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 10:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 10:54 PM
07-17-2005 10:54 PM
Re: script which contains the f90 command with options
i am beginer
now i understand
easy
thanks
roxana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:34 AM
07-19-2005 08:34 AM
Re: script which contains the f90 command with options
Roxana,
If using f90:
You can also set an environment variable which contains all of the options that you want passed to the compiler. According to the f90 man page (man f90), the variable would be "HP_F90OPTS":
csh/tcsh:
setenv HP_F90OPTS "-opt1 -opt2 ..."
sh/ksh:
HP_F90OPTS="-opt1 -opt2 ..."
You could also add the variable to your .profile (sh/ksh) or .cshrc (csh/tcsh).
PS: This method of using an environment variable is also available and documented for just about every other compiler in the world. You just need to read the man page to determine what that variable is called.
-- Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:07 PM
07-19-2005 08:07 PM
Re: script which contains the f90 command with options
I'm glad i've met at least one specialist in F90 on this forum. Your ideea is very usefull to me !
Thank you for your help RAC.
I apologize for my questions. I'm a beginner in unix and i intend to migrate from MPE \ iX to HPUX !
Best Regards !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 12:19 AM
07-20-2005 12:19 AM
Re: script which contains the f90 command with options
I forgot to add one thing to the syntax for setting an environment variable in sh/ksh:
HP_F90OPTS="-opt1 -opt2 ..."
export HP_F90OPTS
(I forgot the export command to make sure the variable is propagated to sub-shells and other programs)
I'm no f90 expert. But I know a thing or two about compilers. :-) Thanks for the kind words. Take care.
-- Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 04:58 AM
07-20-2005 04:58 AM
Re: script which contains the f90 command with options
Take a look at this website...its extremely useful resource for beginners to shell scripting.
http://www.shelldorado.com
hope it helps :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2005 07:29 PM
07-24-2005 07:29 PM