01-24-2008
Look for the number of command line parameters. If 1, then consider the other 2 empty.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to check for value not equal (<>) to 21 and not equal empty or null values.
Please modify this script
if
then
echo "$VALUE,$BSC_NAME,$BSC_ID" > $OUT_FILE/power_up.out
end if
TQ (5 Replies)
Discussion started by: doer
5 Replies
2. UNIX for Dummies Questions & Answers
Hi Masters.....
I have problem !!!
I need to check number of records in a file and if it is zero or file is empty i need to do some task.
if ; then
echo "File s empty"
else
echo "Not empty"
fi
so how to check this condition.
I used wc -l < filename.txt => 1 for zero records
same result... (1 Reply)
Discussion started by: shreekrishnagd
1 Replies
3. Shell Programming and Scripting
I have the list of users in user.log, under each user folder there is sub1 folder is there. i want to check whether sub1 is empty or not, if it is empty i have to skip that user user folder and iterate next user folders. i have the sample code,its not giving not proper results.
while read line... (8 Replies)
Discussion started by: KiranKumarKarre
8 Replies
4. Shell Programming and Scripting
I need to check if a directory is empty using an if condition
in the pseudocode below
if ; then
else
although i looked at a few forums on this topic, I left feeling a little unclear and i could not use the command successfully
what can i substitute in the if conditon above,... (2 Replies)
Discussion started by: allah_waris45
2 Replies
5. UNIX for Dummies Questions & Answers
i have a veriable
set var1
set var2 = abcd
how can i check if var 1 is empty and if var 2 is not empty ??? (2 Replies)
Discussion started by: nirnir26
2 Replies
6. Shell Programming and Scripting
I am reading from a file and executing the jobs with/without parameters as the job requires.
File
job1 R
job2
job3 Y 123
if
then
<job>.ksh
else
<job>.ksh $params
fi
This works fine if the line read from the file has parameters
it executes like job1.ksh R
But for... (2 Replies)
Discussion started by: nw2unx123
2 Replies
7. Shell Programming and Scripting
hi,
i want to check whether a a variable contains some value or is empty in a shell script. so if the variable contains some value i want to do some job and if the variable doesnt contain any value then i need to skip that job.
here is a sample script
read_filenames.sh contains
... (5 Replies)
Discussion started by: Little
5 Replies
8. Shell Programming and Scripting
Hi gurus ,
I have two files and i want to perform different action based on the condition if both or either is empty
If
then
Do something
elif
then
do something
elif
then
do something
else
do something
fi
I have tried the below bt its not... (4 Replies)
Discussion started by: r_t_1601
4 Replies
9. Shell Programming and Scripting
I have an XML tag <abc> which is empty as <abc></abc>.If the the tag is empty I want to flag the file as bad.
Please help.
Thanks (3 Replies)
Discussion started by: aneeta13
3 Replies
10. Shell Programming and Scripting
Hello
So i have that script collection, in which i have a single script to create a configuration file.
In there, i have multiple occourences of something like this:
prj_title=$(tui-read "What is the TITLE? ($prj_name):")
] && prj_title="${prj_name/_/ }"
They all work as expected, if... (5 Replies)
Discussion started by: sea
5 Replies
LEARN ABOUT HPUX
vparutil
vparutil(1M) vparutil(1M)
NAME
vparutil - get and set SCSI parameters for SCSI controllers from a virtual partition
SYNOPSIS
dev_path
dev_path
dev_path scsi_id] scsi_rate]
DESCRIPTION
The command gets and sets SCSI parameters for SCSI controllers within a running virtual partition. When setting the SCSI parameters using
the option, the virtual partition which owns the specified SCSI controller must be in the down state. If not, the command will fail with
the appropriate error code.
The SCSI parameters for a given SCSI controller must first be set (from the firmware BCH prompt or using the option) before the parameters
can be retrieved using the option.
The command is allowed on Itanium(R)-based platforms for compatibility. No action is taken for the command.
Options
recognizes the following command-line options:
Deletes an entry for the specified SCSI controller at
dev_path from the SCSI table.
Gets the SCSI parameters for the specified SCSI controller at
dev_path.
Sets the SCSI parameters for the specified SCSI controller at
dev_path.
Operands
recognizes the following command-line operands:
dev_path The device path of the SCSI controller.
id The SCSI ID for the specified controller (defaults to 7).
rate The SCSI rate for the specified controller. This parameter can have one of two values: for the corresponding fast wide and
ultra wide SCSI interfaces.
Note
For managing SCSI controllers, use corresponding SCSI utilities. For further information refer to
SECURITY RESTRICTIONS
This command is restricted to processes owned by superuser.
When virtual partition flexible administrative capability is enabled, only a Designated-Admin vPar can set SCSI parameters for SCSI con-
trollers.
EXAMPLES
Set the SCSI ID for controller at 0/0/2/0 to 3 with the fast wide rate:
RETURN VALUE
Successful.
Invalid SCSI controller specification.
Invalid SCSI ID.
Could not communicate with virtual partition monitor.
Virtual partition which owns SCSI controller is not in down state.
Internal firmware call failed.
Other error.
AUTHOR
was developed by the Hewlett-Packard Company.
SEE ALSO
vparadmin(1M), vparboot(1M), vparcreate(1M), vparconfig(1M), vpardump(1M), vparefiutil(1M), vparenv(1M), vparextract(1M), vparmodify(1M),
vparreloc(1M), vparremove(1M), vparreset(1M), vparstatus(1M), vparresources(5), vpartition(5), vpmon(5).
vparutil(1M)