01-28-2011
Yes, you got it right. The values are just the command to look out for errors, and if there are any, i would get a couple of rows listing the error.
However, if i run those command in prompt, if there are no errors, i get the next prompt.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have following if condition
if
above statement is case sensitive.....what is syntax if i have to make above comparision case insensetive (4 Replies)
Discussion started by: mahabunta
4 Replies
2. Shell Programming and Scripting
Hi friends, :)
In a shell script i found the following if condition.
echo -n "Which version of $1 do you want to restore ('0' to quit)? : "
read desired
if ${desired:=1} -ge $index ] ; then
echo "$0: Restore canceled by user: index value too big." >&2
exit 1
fi
Can... (1 Reply)
Discussion started by: ravi raj kumar
1 Replies
3. Shell Programming and Scripting
i have a paramter data_date in which i am passing a string value.i want to find out another paramter file_date from this.the logic is given below
if day of data_date = sunday or monday
then
file_date=data_date-1
else
file_date=data_date-2
i am passing data_date as 20061027.
how can i... (3 Replies)
Discussion started by: dr46014
3 Replies
4. Shell Programming and Scripting
Hi
I have to evaluate multiple conditions with an 'or'.
Here is an example:
if
when i use the above i get a error message
'
Please help me to know if i am missing something in the syntax.
how do i achieve multiple "or" in the same if condition.
Thanks. (11 Replies)
Discussion started by: sunrexstar
11 Replies
5. HP-UX
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
Discussion started by: soumyabubun
2 Replies
6. Shell Programming and Scripting
hi,
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Discussion started by: jao_madn
3 Replies
7. Shell Programming and Scripting
if
chr1:109457160 1 109457160 99.1735537190083 +
chr1:109457233 1 109457233 99.1735537190083 -
chr1:109457614 1 109457614 99.1735537190083 +
chr1:109457618 1 109457618 100 +
chr1:109457943 1 109457943 100 -
chr1:109458224 1 109458224 99.1735537190083 -
file1.txt
If 6th column in... (3 Replies)
Discussion started by: johnkim0806
3 Replies
8. Shell Programming and Scripting
HI
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
like
if ]; then
return 0
fi
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
9. UNIX for Dummies Questions & Answers
Hi all
Unix newbie - please be gentle
Am modifying an existing script to error trap a variable with a length of 0
#!/bin/bash
ipfile='/var/data/bin/ipaddress'
] && ipold="$(< "$ipfile" )"
ipnew="$( wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //;s/<.*$//' )"
#... (6 Replies)
Discussion started by: CRChamberlain
6 Replies
10. Shell Programming and Scripting
o/p of my command is given below
My requirement is
if Pnumber is 0 then
stabilization.Build.2013
else
stabilization.PBuild.2013.3 (11 Replies)
Discussion started by: nikhil jain
11 Replies
LEARN ABOUT CENTOS
seesat5
seesat5(1) General Commands Manual seesat5(1)
NAME
seesat5 - provides satellite visibility information.
SYNOPSIS
seesat5 [ report ] [ go <Label> ] | [ <command> ... ]
DESCRIPTION
This program uses the sgp4 algorithm provided by NORAD to produce position information on a satellite. Seesat5 can produce tracking infor-
mation for one satellite over a period of several days, or for a collection of satellites over that period. By providing filter conditions
seesat5 prints out only those satellites you might have a chance to see rather than all the satellites that pass above the horizon.
Seesat5 is typically run by placing control commands into an init file called SEESAT5.INI. See seesat5 (7) for the description of these
commands. If there is no init file Seesat5 will present the operator with a '>' prompt where commands can be entered. From the prompt
seesat5 will begin analysis when sufficient parameters have been entered to begin the run.
Seesat5 uses selection conditions to filter the data so that only high and bright satellites are printed. Note that the selection condi-
tions are used to select whether or not the current passes data will be printed. If it is printed, then the complete pass data is printed.
ie. all data from when the satellite comes over the horizon until it goes below.
For lines that satisfied ALL the selection conditions, a "+" sign is printed as the first character.
Options
report This option will disable printing of report records in the output of the run. These include all command lines found in SEESAT5.INI
or entered from the command line or the prompt.
go Followed by a label, this option causes branching within the SEESAT5.INI to begin execution at the line following label. Branching
occurs when the cmdline command is executed in the SEESAT5.INI file.
command
Most of the commands that can be found in SEESAT5.INI can be entered on the command line. If you desire the SEESAT5.INI file to exe-
cute after the command line be sure to make the last command RET.
FILES
SEESAT5.INI
The control file for seesat5
*.tle Two line element files used by seesat5.
SEE ALSO
seesat5(7), SEESAT5.INI(5), tle(5), cr(1)
BUGS
Seesat5 is not always able to check data integrity. Since computation and output is driven by the data in the two line element, subtle
errors in a tle can cause floating point exceptions. In addition there are several commands that do not work well together, like SHOWTLE
and RUNTIME. Please report any problems with seesat5 to Dale Scheetz <dwarf@polaris.net>.
Debian Linux 28 March 96 seesat5(1)