"Tom Phoenix" <[EMAIL PROTECTED]> writes:
> On Jan 18, 2008 7:00 AM, <[EMAIL PROTECTED]> wrote:
>
>> I just want to find out whether command("mk_view $view_name ETC") is
>> properly running or not.
>
> I think you're looking for the program's exit status. Traditionally on
> Unix and many similar
On Jan 18, 2008 7:00 AM, <[EMAIL PROTECTED]> wrote:
> I just want to find out whether command("mk_view $view_name ETC") is
> properly running or not.
I think you're looking for the program's exit status. Traditionally on
Unix and many similar systems, the exit status is an integer, with 0
meanin
Rob Dixon [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 17, 2008 8:36 PM
To: beginners@perl.org
Subject: Re: Help in system function
[EMAIL PROTECTED] wrote:
> Hi,
>
> Here is the modified code
>
> $vw=system("mk_view $view_name ETC");
>
> print "$vw\n&quo
On Jan 17, 10:09 am, [EMAIL PROTECTED] (Chen Yue) wrote:
> If you are in a *nix system, you can try to run
>
> $result=` mk_view $view_name ETC`
>
> instead and see the output from $result. It may be helpful to find the root
> cause.
You've got it backwards.
system("...")
caues the output to be
If you are in a *nix system, you can try to run
$result=` mk_view $view_name ETC`
instead and see the output from $result. It may be helpful to find the root
cause.
-邮件原件-
发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
发送时间: 2008年1月17日 22:16
收件人: beginners@perl.org
主题: Help in
[EMAIL PROTECTED] wrote:
Hi,
Here is the modified code
$vw=system("mk_view $view_name ETC");
print "$vw\n";
if ($vw)
{ print "view is not created\n";
}
else{
print "View is created \n";
Please help
And what is the modified problem?
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
On Thursday 17 January 2008 09:16:17 [EMAIL PROTECTED] wrote:
> Hi All,
>
>
>
> I am executing following command in Perl script
>
>
>
> $vw=system("mk_view $view_name ETC");
>
> if ($vw)
>
> { print "view created successfully\n";
>
> }
>
>
>
> When I run this command, I am getting message "view c
From: Sayed, Irfan
Sent: Thursday, January 17, 2008 7:46 PM
To: 'beginners@perl.org'
Subject: Help in system function
Hi All,
I am executing following command in Perl script
$vw=system("mk_view $view_name ETC");
if ($vw)
{ print "view created successfull
Hi All,
I am executing following command in Perl script
$vw=system("mk_view $view_name ETC");
if ($vw)
{ print "view created successfully\n";
}
When I run this command, I am getting message "view created
successfully". But in reality command is not executing at all
Please help