01-12-2009
For check loop - you need - if [[ $flag == "A" || $flag == "B ]]
if [[ $flag == "A" || $flag == "B" ]]
then
echo " Do nothing "
else
echo "Execute steps for flag T"
fi
done
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am writing a script file which sends the log files along with their size in a folder named log to a file called temp.log using the following cmd:
ls -st 190_GSTV_HUX_003QISCGSK026** >> /home/user/temp.log
the temp.log looks like this:
16 190_GSTV_HUX_003QISCGSK026_message070321.log
... (11 Replies)
Discussion started by: kiran1112
11 Replies
2. Shell Programming and Scripting
Hi all,
I have one clarification i am using the loop which will process for each record .suppose there is f ailure in the first record it need to send mail and process the next .my code:
defcount=`cat <filename>|wc -l`
while ]
do
if <some condiotion>
then
echo "mail"
fi
done
so... (1 Reply)
Discussion started by: ithirak17
1 Replies
3. Shell Programming and Scripting
I have a for loop in my script as shown below.
for file_path in $file_list ; do
........my code
..........
......
done
Can i restrict the number of files parsing to the variable file_path as 50?
That is, even if I have some 100 files in file_list, I need to take only 50 files for... (7 Replies)
Discussion started by: Vijay06
7 Replies
4. Shell Programming and Scripting
Hi,
I have variables like
var1
var2
var3
var4
in
if loop i am trying to check the condition
if(variable == "var") then
echo $variable
endif (0 Replies)
Discussion started by: vasanth.vadalur
0 Replies
5. Shell Programming and Scripting
Hello
I want to compare values of two variables as CHECK condition in a while loop.
eg:
var1=0
var2=10
while
do
echo " $var1 "
var1=`expr $var1 + 1`
done
However this is giving error.How to do it in a proper manner?
Thanks. (3 Replies)
Discussion started by: dashing201
3 Replies
6. Shell Programming and Scripting
Hi,
I am in trouble. I can get inside my condition test inside a loop :
I am in ksh (solaris)
while read file
do
<commande to retrieve file> >> ${LOG_RETRIEVE_FILE.log}
msg_err=$(cat ${LOG_RETRIEVE_FILE.log} | grep "error retrieve")
if ; then
<sendmail>
exit 1
fi
done
I tried... (6 Replies)
Discussion started by: Aswex
6 Replies
7. Shell Programming and Scripting
Hi unix gurus....
i need to set a flag inside awk. i tried many methods for that but couldn't succeed :(
like
echo "flag= " $flag
echo "flag= " ${flag}
and so...but not able to show the flag. help me out.
i'm using a if condition inside awk... help me out with correct syntax to set a... (7 Replies)
Discussion started by: sukhdip
7 Replies
8. Shell Programming and Scripting
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
Discussion started by: shell_boy23
6 Replies
9. Shell Programming and Scripting
Hi ,
Please excuse me for opening a new thread i am unable to find out the syntax error
in my if else condition inside for loop in awk command ,
my actual aim is to print formatted html td tag when if condition (True) having string as "failed",
could anyone please advise what is the right... (2 Replies)
Discussion started by: karthikram
2 Replies
10. Shell Programming and Scripting
Hi,
I Have to check two condition in while loop every 2 minutes. while loop is accompanied with number of times it will check.Please help in putting the two condition in while loop as appropriate.
z= input value,
A=1
while
do
1.check the file output,if the file output is N then keep on... (2 Replies)
Discussion started by: netdbaind
2 Replies
LEARN ABOUT DEBIAN
ne_get_session_flag
NE_SET_SESSION_FLAG(3) neon API reference NE_SET_SESSION_FLAG(3)
NAME
ne_set_session_flag, ne_get_session_flag - set and retrieve session flags
SYNOPSIS
#include <ne_request.h>
void ne_set_session_flag(ne_session *sess, ne_session_flag flag, int value);
int ne_get_session_flag(ne_session *sess, ne_session_flag flag);
DESCRIPTION
The ne_set_session_flag function enables or disables a session flag. Passing a non-zero value argument enables the flag, and zero disables
it.
The following flags are defined:
NE_SESSFLAG_PERSIST
disable this flag to prevent use of persistent connections
NE_SESSFLAG_ICYPROTO
enable this flag to enable support for non-HTTP ShoutCast-style "ICY" responses
NE_SESSFLAG_SSLv2
disable this flag to disable support for the SSLv2 protocol
NE_SESSFLAG_RFC4918
enable this flag to enable support for RFC4918-only WebDAV features; losing backwards-compatibility with RFC2518 servers
NE_SESSFLAG_CONNAUTH
enable this flag if an RFC-violating connection-based HTTP authentication scheme is in use
NE_SESSFLAG_TLS_SNI
disable this flag if a server is used which does not correctly support the TLS SNI extension
NE_SESSFLAG_EXPECT100
enable this flag to enable the request flag NE_REQFLAG_EXPECT100 for new requests
RETURN VALUE
The ne_get_session_flag function returns zero if a flag is disabled, less than zero if the flag is not supported, or greater than zero if
the flag is enabled.
SEE ALSO
ne_session_create, ne_set_request_flag.
AUTHOR
Joe Orton <neon@lists.manyfish.co.uk>
Author.
COPYRIGHT
neon 0.29.6 3 May 2011 NE_SET_SESSION_FLAG(3)