[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;
if ($vw)
{ print view is not created\n;
}
else
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
meaning
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 systems, the
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
, 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 successfully\n;
}
When I run this command, I am getting message view created
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 successfully\n;
}
When I run this command, I am getting message view created
successfully. But in reality command is not executing at all
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 created
successfully.
[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]
For
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
Hi guys,
I have a perl script using system function, owner is root, like,
print Previous $?, $! ;
system(mkdir --parents --mode=0755 /home/myhome/disp/archive) == 0
or die Unable to create directory,$!, $?
system function sometimes return non-zero value, $? is -1 $! is
On Thursday, May 23, 2002, at 04:13 , Frank Wu wrote:
I have a perl script using system function, owner is root, like,
print Previous $?, $! ;
system(mkdir --parents --mode=0755 /home/myhome/disp/archive) == 0
or die Unable to create directory,$!, $?
system function
Frank Wu wrote:
Hi guys,
Hello,
I have a perl script using system function, owner is root, like,
print Previous $?, $! ;
system(mkdir --parents --mode=0755 /home/myhome/disp/archive) == 0
or die Unable to create directory,$!, $?
system function sometimes
12 matches
Mail list logo