On Wed, Jan 20, 2010 at 9:11 PM, Eric Blake wrote:
> According to Eric Blake on 1/20/2010 6:01 AM:
> >> 3.As you suggested(thanks)"check what arguments for exit() expr is
> giving"
> >>
> >> =Frankly i dont know how to check the same I will be thankful if you
> please
> >> let me know the way to
On Wed, Jan 20, 2010 at 8:29 PM, Philip Rowlands wrote:
> On Wed, 20 Jan 2010, salih k wrote:
>
> Now shall I explain again (sorry:))
>>
>> actually the issue is rare and never happened in unix .So am curious on
>> this.
>>
>
> "never happene
On Wed, Jan 20, 2010 at 7:33 PM, Philip Rowlands wrote:
> On Wed, 20 Jan 2010, salih k wrote:
>
> add_num=`expr $int_num + 1 1>/dev/null 2>&1`
>>
>> if [ "$?" -ne "0" ]
>>
>> some case exit status is 1552 for expr even though
Hi,
add_num=`expr $int_num + 1 1>/dev/null 2>&1`
if [ "$?" -ne "0" ]
some case exit status is 1552 for expr even though the argument is integer
.Initialy i checked
if [ $?-ne 0 ],but this shows the above error so, i am planning to use
kms=$?
if [ $kms -eq 1 -o $kms -eq 2 -o $kms -eq 3 ]
i
On Tue, Jan 19, 2010 at 3:37 PM, Alfred M. Szmidt wrote:
> What are all the exit statuses I need to check just after expr
> command? Is it only need to check 1 or 2 or 3 for fail condition
> and zero for success ?else pease specify
>
> You only need to check for non-zero exit codes for fai
On Tue, Jan 19, 2010 at 9:10 PM, Eric Blake wrote:
> According to salih k on 1/16/2010 7:32 AM:
> > Piece of Script
> > --
> >
> > /isnum=`awk -F$delim '$1=="BH"{print $5}' $fil`/
> > /
>
> That's s
Hi,
What are all the exit statuses I need to check just after expr command?
Is it only need to check 1 or 2 or 3 for fail condition and zero for success
?else pease specify
Thanks
Regards
Salih
On Sat, Jan 16, 2010 at 10:32 PM, salih k wrote:
>
>
> On Sat, Jan 16, 2010 at 10:03 PM, Eric Blake wrote:
>
>
>> According to salih k on 1/16/2010 6:38 AM:
>>
>> > Hi,
>> >
>> > thank you for the patiance ..I am sorry for being top pos
On Sat, Jan 16, 2010 at 10:03 PM, Eric Blake wrote:
> According to salih k on 1/16/2010 6:38 AM:
>
> > Hi,
> >
> > thank you for the patiance ..I am sorry for being top posted.
> > The piece of script is to check alphanumeric
> >
> > BH(batch heade
>
> > Subject:
> > Re: Bug in expr***urgent
> > From:
> > salih k
>
> It looks like the list spam filter was accidentally turned up too high in
> the last few hours, and ate your most recent message before it could get
> through to the list. I've relax
, if we use add_num=`expr $int_num + 1 >/dev/null 2>&1` instead
add_num=`expr $int_num + 1 1>/dev/null 2>&1`
whether this issue can be resolved?
4.Also,if we use if [ $? -ne 0 ] instead of if [ "$?" -ne "0" ] whether this
issue can be solved?
Thanks,
salih
Hi,
There is a bug iin the expr command and exit status is"51198" some times
"1552"
I have used expr to check whether the variable is numeric
add_num=`expr $int_num + 1 1>/dev/null 2>&1`
kms=$?
# if [ "$?" -ne "0" ]
if [ "$kms" -ne "0" ]
then
here $kms returns exit s
12 matches
Mail list logo