12-29-2013
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
Im having some problems with this function, I pass two arguments to the function $1 $2 (Arguments are month and date inputted by the user)
for some reason the case always fails... however in the cases defined below where it shouldnt fail the result is:
if it fails with input... (6 Replies)
Discussion started by: Darklight
6 Replies
2. Shell Programming and Scripting
I have been using the if statement in csh like this
if ( $opt1 == 1 ) then
.....
elseif ( $opt2 == 1 ) then
......
endif
Seems to work, but got
Badly placed ()'s.
When I used a space in the elseif, a space between the 'else' and the 'if' it worked (0 Replies)
Discussion started by: kristinu
0 Replies
3. Linux
Hi all,
This is my first post in this forum, can i request you to guide, where i am going wrong with the error below.
34: Syntax error: "fi" unexpected (expecting "then")
#!/bin/sh
argCount=0
mysql_path=$USER_INSTALL_DIR$
for i in $*; do
/A argCount+=1
done
if ;then
echo... (2 Replies)
Discussion started by: oracle_coorgi
2 Replies
4. Shell Programming and Scripting
Hi,
Ihave shifted this thread which i posted in linux forum to here if i am fault please correct me.
When i excute this below script i am getting the follwing error can any one please look into it for persual.
./sample_oracle_tradescope.sh: 25: showDEFAULTUsage: not found
... (6 Replies)
Discussion started by: oracle_coorgi
6 Replies
5. Shell Programming and Scripting
Hi everyone,
May you help me with the correct syntax of the follow bash statements please
X=10
if ]; then
echo "The value is between 1 and 5"
for ((i=1;i<=${X})); do
echo $i
done
else if ]; then
echo "The value is between 6 and 10"
for ((i=1;i<=${X})); do
... (5 Replies)
Discussion started by: Ophiuchus
5 Replies
6. Linux
Hello everyone,
I am trying to compile a code under fedora14.Kernel Linux 2.6.35.6-45fc14.i686-GNOME 2.32.0. I use f77,g77 and gfortran to compile but I get the same error all ways.
Unsupported OPEN control item at (^) -- ACTION=, ASSOCIATEVARIABLE=, BLOCKSIZE=, BUFFERCOUNT=,... (1 Reply)
Discussion started by: miriammiriam
1 Replies
7. Programming
I have the code below and I want to remove the "go to" statements. Any idea how I can do it?
if (iorder == 0) then
tmincurrent = 1.0e11
if(ireverse == 0 .or. istop /= 1) then
do i = 1, 6
if ((side(i) /= sidelimit(i)) .and. (tminside(i) < tmincurrent)) then
... (1 Reply)
Discussion started by: kristinu
1 Replies
8. Programming
Hi guys
I am faced with this problem that I couldn't figure out yet, if you can point me to some direction that'll be of great help. So here's what I want to do.
I have let's say 10000 files which contains same number of Z coordinates in each file. I have to find the distance of those... (6 Replies)
Discussion started by: saleheen
6 Replies
9. Shell Programming and Scripting
Well, guys I saw a question about GOTO for Python.
So this gave me the inspiration to attempt a GOTO function for 'dash', (bash and ksh too).
Machine: MBP OSX 10.14.3, default bash terminal, calling '#!/usr/local/bin/dash'...
This is purely a fun project to see if it is possible in PURE... (3 Replies)
Discussion started by: wisecracker
3 Replies
FORTRAN(1) User Commands FORTRAN(1)
NAME
Fortran - Reports statistics regarding an HDF5 file and the objects in the file.
DESCRIPTION
usage: h5fc [OPTIONS] <compile line>
OPTIONS:
-help This help message.
-echo Show all the shell commands executed
-prefix=DIR
Prefix directory to find HDF5 lib/ and include/
subdirectories [default: /usr]
-show Show the commands without executing them
-showconfig
Show the HDF5 library configuration summary
-shlib Compile with shared HDF5 libraries
-noshlib
Compile with static HDF5 libraries [default]
<compile line>
- the normal compile line options for your compiler.
h5fc uses the same compiler you used to compile HDF5. Check with your compiler's man pages for more information on which options are
needed.
You can override the compiler and linker to compile your program by setting the following environment variables accordingly:
HDF5_FC
- use a different Fortran 90 or 95 compiler
HDF5_FLINKER
- use a different linker
HDF5_USE_SHLIB=[yes|no]
- use shared or static version of the HDF5 library
[default: no]
You can also add or change paths and flags to the compile line using the following environment varibles or by assigning them to
their counterparts in the 'Things You Can Modify to Override...' section of h5fc
Variable
Current value to be replaced
HDF5_FFLAGS
""
HDF5_LDFLAGS
""
HDF5_LIBS
""
Note that adding library paths to HDF5_LDFLAGS where another hdf5 version is located may link your program with that other hdf5
library version.
COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU
General Public License. For more information about these matters, see the file named COPYING
SEE ALSO
The full documentation for Fortran is maintained as a Texinfo manual. If the info and Fortran programs are properly installed at your
site, the command
info Fortran
should give you access to the complete manual.
Fortran (Debian 4.6.1-4) 4.6.1 August 2011 FORTRAN(1)