01-17-2012
For your situation, you must use "&&" (and).
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i have the following scenario
#!/bin/sh
a=21.0
b=33.0
c=16.0
cmd=20
cmd1=30
if && ]
then
echo "problem....."
exit 1
else
echo "ok"
exit 0
fi
the issue here is the above condition is never TRUE coz a>cmd && b >cmd1 (7 Replies)
Discussion started by: nano2
7 Replies
2. Shell Programming and Scripting
Hello,
This must be a novice question to you folks. But I searched through various places and did not find an answer to this question:
How do we perform a logical OR operation using sed command? For example, I want to write a command that extracts all the text between pattern1 and pattern2 OR... (0 Replies)
Discussion started by: thejasviv
0 Replies
3. Shell Programming and Scripting
Hi can someone please help me on this.
I need to perform this code:
Grep any lines that meets the following criteria
(A AND B) OR (A AND C)
I tried this code, but it didn't work
Grep-I "A &&B" | "A&&C" *.* $
thanks in advance (12 Replies)
Discussion started by: Needhelp2
12 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a script testor.s which takes a string as command line argument,
Contents of the script:
#!/bin/ksh -x
if ]
then
echo "error"
else
echo "correct"
fi
Here, though i provide the command line argument as "WO_STMT_05292009", it displays error
Is there... (3 Replies)
Discussion started by: Sheema
3 Replies
5. Shell Programming and Scripting
Why the op of the following code is like this ????
i=4 j=-1 k=0
echo $?
echo $?
echo $? (5 Replies)
Discussion started by: lipun4u
5 Replies
6. AIX
I'm trying to find out how many logical partitions our AIX box has. I'm running the command: topas -C
and nothing is showing up. Is it safe to say that there is only one LPAR, which is what AIX is installed on?
Move to AIX - jim mc (2 Replies)
Discussion started by: NycUnxer
2 Replies
7. SuSE
Hello,
This is a programming question as well as a suse question, so let me know if you think I should post this in programming.
I have an application that I compiled under opensuse 12.2 using g77-3.3/g++3.3. The program compiles and runs just fine. I gave the application to a colleague who... (2 Replies)
Discussion started by: LMHmedchem
2 Replies
8. Red Hat
I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following:
sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm
Loaded plugins: fastestmirror
Setting up Local Package... (13 Replies)
Discussion started by: gw1500se
13 Replies
LEARN ABOUT MOJAVE
lamgrow
LAMGROW(1) LAM COMMANDS LAMGROW(1)
NAME
lamgrow - Extend a LAM multicomputer.
SYNOPSIS
lamgrow [-hvd] [-cpu num] [-n nodeid] [-no-schedule] [-ssi key value] hostname
OPTIONS
-cpu num Indicate how many CPUs are available to LAM on the new node.
-d Turn on debugging output. This implies -v.
-h Print useful information on this command.
-n nodeid Assign this ID to the new node.
-no-schedule Indicate that C and N expansion in mpirun and lamexec should not schedule on this node.
-ssi key value
Send arguments to various SSI modules. See the "SSI" section, below.
-v Be verbose.
hostname Extend LAM with this host.
DESCRIPTION
An existing LAM universe, initiated by lamboot(1), can be enlarged to include more nodes with lamgrow. One new node is added for each in-
vocation. At a minimum, the host name that will run the new node is given on the command line. If a different userid is required to ac-
cess the host, it is specified with the appropriate boot SSI options (see lamssi_boot(7)).
The new node can be assigned any unused, non-negative identifier. If no identifier is specified, the highest node identifier in the cur-
rent LAM universe plus one is used. Note that lamboot(1) always assigns node identifiers consecutively from 0.
lamgrow can be run from any node in the current LAM universe. Specifically -- it cannot be run from the intended new host. Two invoca-
tions of lamgrow should not run concurrently, and the command attempts to detect this situation. The name of the host specified in lamgrow
should not be the one which is already present in the user's LAM universe and the command attempts to detect this situation too.
Resource managers will be the most common user of lamgrow. When hosts become idle and a user has expressed a desire to the manager that
extra cycles should be exploited, the manager could invoke lamgrow and then launch the specified application process(es) on the new node.
EXAMPLES
lamgrow -v newhost
Start LAM on newhost and add it to the existing LAM universe. Choose the next available node identifier and report about important
steps as they are done.
lamgrow -n 30 newhost
Start LAM on newhost with node ID 30 and add it to the existing LAM universe. Operate silently.
FILES
laminstalldir/etc/lam-conf.lamd default configuration file for LAM nodes, where "laminstalldir" is the directory where LAM/MPI was in-
stalled.
BUGS
It is not currently possible to specify a configuration file other than lam-conf.lamd on the remote node, even though this is possible with
lamboot.
SEE ALSO
lamboot(1), lamhalt(1), hboot(1), lamwipe(1), tkill(1), bhost(5), conf(5), lamssi_boot(7)
LAM 7.1.4 July, 2007 LAMGROW(1)