10-07-2003
I tried that code in several c compilers. I can't get it to fail. Your compiler must be broken somehow.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok I have just started using UNIX and am trying to write a script that will ping a list that I have created in a file called ipaddesses
I need to get it to find the ip address that is not in use and do nothing however if it finds that all ip addresses have been taken to send me an e-mail!
the... (13 Replies)
Discussion started by: jono
13 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. IP Networking
I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
Discussion started by: NC user
0 Replies
4. UNIX for Dummies Questions & Answers
Hi there
can anyone help me why my code is saying Badly placed ()'s.
#!/bin/csh
if ($#argv != 1) then
echo "One file is required"
exit 1
else
set lines=(`grep '404' $1 | cut -d" " -f5`)
foreach line ($lines)
printf ("Abnormal sites: %s\n", $line)
endif
thanks in advance! :) (7 Replies)
Discussion started by: FUTURE_EINSTEIN
7 Replies
5. Shell Programming and Scripting
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
6. Programming
Hey so I've written a program and it crashes every time I run it. I tried placing breakpoints to see what was going but to my surprise they do not work! I've placed them anywhere and they do not stop the execution of the program.
In fact if I add code and hit rebuild it doesn't even build that... (1 Reply)
Discussion started by: Cambria
1 Replies
7. Shell Programming and Scripting
I guess Mac has default bash. Then I copy my code to another comp and run it...And it gives me an error like "bad substitution"....
How I can change my code??? Never had before this kind of situation. Help please.
if
then
n=$(sort /Users/Natalie/lastserial | tail -1)
... (6 Replies)
Discussion started by: Natalie
6 Replies
8. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
HCC(1) LAM TOOLS HCC(1)
NAME
hcc, mpicc, hcp, mpiCC - Compile LAM C/C++ programs.
SYNTAX
hcc [-showme] ...
hcp [-showme] ...
see cc(1) and CC(1) (or whatever your underlying C/C++ compilers are) for all other options.
DESCRIPTION
hcc and hcp are convenience wrappers for the local native C and C++ compilers. Translation of a LAM program requires the linkage of the
LAM specific libraries which may not reside in one of the standard search directories of ld(1). It also often requires the inclusion of
header files what may also not be found in a standard location. hcc passes its arguments to the local native C compiler along with the -I,
-L and -l options required by LAM programs. This includes all necessary options for ROMIO and/or C++ bindings support (if ROMIO/C++ sup-
port was included when LAM was compiled). hcp is similar, but invokes the native C++ compiler instead.
mpicc is now the same as hcc, just as mpiCC is now the same as hcp. See the NOTES section, below.
By default, hcc uses the C compiler that was selected when LAM was configured (with the --with-cc flag to ./configure, or by setting the
environment variable CC before ./configure was invoked) as the local native C compiler, but this can be overridden by the LAMHCC environ-
ment variable. Likewise, hcp uses the C++ compiler that was selected when LAM was configured (with the --with-cpp flag to ./configure, or
by setting the environment variable CXX before invoking ./configure) by default, but this can be overridden by the LAMHCP environment vari-
able.
OPTIONS
-showme
Does not invoke the underlying C/C++ compiler. Instead, it shows the command line that would be executed to compile the C/C++ pro-
gram.
NOTES
Previous versions of hcc and hcp did not automatically link in the MPI library. Starting with LAM version 6.3, since hcc and hcp have
become the de facto LAM C and C++ compilers, the -lmpi option is now automatically passed to the underlying compiler when linking LAM/MPI
programs.
Previous versions of LAM included the mpicc and mpiCC wrapper scripts to automatically pass -lmpi to hcc and/or hcp. These scripts are now
obsolete since hcc and hcp now include -lmpi automatically. mpicc and mpiCC are now symbolic links to hcc and hcp, respectively, to ensure
backward compatibility.
SEE ALSO
cc(1), CC(1), ld(1), lam-helpfile(5)
LAM 6.5.8 November, 2002 HCC(1)