I must agree with James :-)
Most times I post, I usually tend to solve the main problem without
caring about the others, but I should really make an effort and act a
little more like him :-)
jac
On Thu, 2004-04-29 at 14:25, James Edward Gray II wrote:
> On Apr 29, 2004, at 5:53 AM, Durai wrote:
On Apr 29, 2004, at 5:53 AM, Durai wrote:
Hi,
I have written many test cases using shell script. But now
I am
writting in perl. I have done like the following one:
open(FILE_LOG,">log_file");
Don't do this. When we ask the OS to do something for us, like open a
file, we need to make
On Apr 29, 2004, at 5:08 AM, Durai wrote:
Hello All,
In shell script file, I can call another program & checked the exit
status.
Like:
./prog2
if [ $? -ne 0 ]
then
echo "Error"
exit
fi
How to do in perl?
Looks like you got your answer, but I want to add one more point.
Remembe
Hi,
Thanks for help me.
Regs,
Durai.
- Original Message -
From: "Jose Alves de Castro" <[EMAIL PROTECTED]>
To: "Durai" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 29, 2004 4:15 PM
Subject: Re: Running anothe
exit
> fi
>
> What is the equivalent code in perl for above shell script?
>
> Thanks,
> Durai.
>
> - Original Message -----
> From: "Jose Alves de Castro" <[EMAIL PROTECTED]>
> To: "Durai" <[
exit
fi
What is the equivalent code in perl for above shell script?
Thanks,
Durai.
- Original Message -
From: "Jose Alves de Castro" <[EMAIL PROTECTED]>
To: "Durai" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 29,
[EMAIL PROTECTED]>
> To: "Durai" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, April 29, 2004 3:30 PM
> Subject: Re: Running another program in current program
>
>
> > It's the same variable :-)
> >
> > $? The
ot; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 29, 2004 3:30 PM
Subject: Re: Running another program in current program
> It's the same variable :-)
>
> $? The status returned by the last pipe close, backtick (``) com-
> mand,
It's the same variable :-)
$? The status returned by the last pipe close, backtick (``) com-
mand, successful call to wait() or waitpid(), or from the sys-
tem() operator.
For more info, man perlvar
If you care to give it a test, here it goes:
perl -e '`ls`;print $?'
# prin
Hello All,
In shell script file, I can call another program & checked the exit status.
Like:
./prog2
if [ $? -ne 0 ]
then
echo "Error"
exit
fi
How to do in perl?
ANy help much appreciated.
Regs,
Durai.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus syste
10 matches
Mail list logo