03-16-2013
Hi.
See also related intrinsic for f77:
Quote:
]8.98 GETARG - Get command line arguments
Description:
Retrieve the POS-th argument that was passed on the command line when the containing program was invoked.
This intrinsic routine is provided for backwards compatibility with GNU Fortran 77. In new code, programmers should consider the use of the GET_COMMAND_ARGUMENT intrinsic defined by the Fortran 2003 standard.
...
excerpt from
GETARG - The GNU Fortran Compiler
Best wishes ... cheers, drl
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Discussion started by: Orange Stripes
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a .test file which has:
#!/bin/ksh
export TEST_FLAG=1
In the test1.ksh i have:
#!/bin/ksh
. .test
echo $TEST_FLAG
When i execute the test1.ksh its showing the value as 1.
But if i refer the same variable in another script, the value is not 1.
Basically, I need to have... (1 Reply)
Discussion started by: risshanth
1 Replies
3. Shell Programming and Scripting
Hi,
I use AIX (ksh) and Linux (bash) servers. I'm trying to do scripts to will run in both ksh and bash, and most of the time it works. But this time I don't get it in bash (I'm more familar in ksh).
The goal of my script if to read a "config file" (like "ini" file), and make various report.... (2 Replies)
Discussion started by: estienne
2 Replies
4. UNIX for Dummies Questions & Answers
I would like to write a for loop that does the following:
I have a file called X.txt and other files called 1.txt,2.txt, .....,1000.txt.
I want to substitute the 6th column of the file X.txt with 1.txt and store the output as X.1. Then I want to do the same with X.txt and 2.txt and store the... (1 Reply)
Discussion started by: evelibertine
1 Replies
5. Shell Programming and Scripting
Hi,
I have a loop running until a variable L that is read previously in the full script. I'd like to grep some information in an input file at a line that contains the value of the loop parameter $i.
I've tried to use grep, but the problem is nothing is written in the FILE files. It seems grep... (5 Replies)
Discussion started by: DMini
5 Replies
6. Shell Programming and Scripting
Hi all ,
i want to pass multiple files as input to a for loop
for i in file1 file2 file3
do
some awk action < $i >> $i.out
done
but im getting error in that for loop is the way i use to pass files to awk using for correct and
2.we can directly pass multiple files to awk as... (7 Replies)
Discussion started by: zozoo
7 Replies
7. AIX
Hi ALL,
I always use du command for analyzing diskusage to housekeep a filesystem.
Can somebody tell the where first row filesize resides?
bash-3.2# df -gt /tmp
Filesystem GB blocks Used Free %Used Mounted on
/dev/hd3 16.50 10.01 6.49 61% /tmp
bash-3.2#
bash-3.2# pwd... (6 Replies)
Discussion started by: Thala
6 Replies
8. Shell Programming and Scripting
I have a bash loop that waits for a single key press, then does $something depending on what $key is pressed before refreshing the screen with updated data. The problem I have is that the script will store additional key presses and chain them together causing the screen to redraw and the script... (1 Reply)
Discussion started by: DarkPhoenix
1 Replies
9. Shell Programming and Scripting
I have the following while loop that I put in a script, demo.sh:
while read rna; do
aawork=$(echo "${rna}" | sed -n -e 's/\(...\)\1 /gp' | sed -f rna.sed)
echo "$aawork" | sed 's/ //g'
echo "$aawork" | tr ' ' '\012' | sort | sed '/^$/d' | uniq -c | sed 's/*\(*\) \(.*\)/\2: \... (3 Replies)
Discussion started by: faizlo
3 Replies
10. UNIX for Beginners Questions & Answers
Cope sample1: test.sh
i=0
echo " Outside loop i = $i "
while
do
i=$(( $i + 1))
echo "Inside loop i = $i "
done
echo " Out of loop i is : $i "
When run output :
Outside loop i = 0
Inside loop i = 1
Inside loop i = 2
Inside loop i = 3
Inside loop i = 4
Inside loop i = 5
Inside... (8 Replies)
Discussion started by: Adarshreddy01
8 Replies
LEARN ABOUT DEBIAN
pvm_archcode
ARCHCODE(3PVM) PVM Version 3.4 ARCHCODE(3PVM)
NAME
pvm_archcode - Returns the data representation code for a PVM architecture name.
SYNOPSIS
C int cod = pvm_archcode( char *arch )
Fortran call pvmfarchcode( arch, cod )
PARAMETERS
arch Character string containing the architecture name.
cod Integer returning architecture code.
DESCRIPTION
The routine pvm_archcode returns an integer given an architecture name. The code returned identifies machines with compatible binary data
formats. For example, SUN4 and RS6K have the same code, while ALPHA has a different one (because a few datatypes have different sizes).
This lets you know when you can get away with using PvmDataRaw instead of PvmDataDefault encoding to pass messages between tasks on two
machines.
Naturally, you shouldn't assume the values returned by pvm_archcode are etched in stone; the numbers have no intrinsic meaning except that
if two different arch names map to the same value then they're compatible.
This routine is actually obsolete in the sense that the architecture codes returned are already available in the hi_dsig field of the
pvmhostinfo structure returned by pvm_config(), as shown in the below example. The routine is maintained for backwards compatibility only.
EXAMPLES
C:
struct pvmhostinfo *hip;
int i;
pvm_config((int *)0, (int *)0, &hip);
i = pvm_archcode(hip[0].hi_arch);
/* or you could just do: i = hip[0].hi_dsig; */
Fortran:
CALL PVMFARCHCODE( 'RS6K', k )
ERRORS
On success, pvm_archcode returns a positive integer data signature.
The following error conditions can be returned as well:
PvmBadParam
giving an invalid architecture name.
PvmNotFound
there is no host with the given architecture name in the current virtual machine configuration.
PvmSysErr
pvmd not responding.
SEE ALSO
pvm_config(3PVM), pvm_initsend(3PVM), pvm_notify(3PVM), pvm_tasks(3PVM), pvm_tidtohost(3PVM)
15 March, 1994 ARCHCODE(3PVM)