Cai, Lixin (L.) wrote:
I have installed ActiveState perl Dev Kit and licenses. I do not know
what command can make me open GUI debugger on linux. Like on Win32, if
you run "perl -d test.pl", it open GUI debugger for you. Does anyone
know it?
Thanks a lot inadvance!
Lixin
___
Thanks to all,
It works!
Lixin
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of P
N
Sent: Friday, October 29, 2004 3:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [Perl-unix-users] Pass argument to a method
Hi Lixin,
To make it work, instead of using "$ARGV
Hi Lixin,
To make it work, instead of using "$ARGV[0]"
You may want to try this:
my $command_line = shift(@_);
Phil
--- "Cai, Lixin (L.)" <[EMAIL PROTECTED]> wrote:
> Now I am meeting the problem: my codes is like:
>
> **
> $ldapsearch="/usr/bi
Hi Cai,
You try to get the first command line argument with $ARGV[0] contains in
array @ARGV.
I think for your function you should use "@_" or "shift" to get the
function passed arguments.
my ($command_line) = @_; # precise more variable for several arguments
or
my $command_line = shift;
Olivier
Now I am meeting the problem: my codes is like:
**
$ldapsearch="/usr/bin/ldapsearch";
my $command = "$ldapsearch -x -LLL -h \"cds2.ford.com\" -b \"ou=People,
o=Ford,c=US\" \"uid=$login\" uid fordUNIXid";
print "print A -- $command";
Great help from you. It is working!!!
open (CHILD1, "$command 2>&1 |");
Thanks a lot!
Lixin
-Original Message-
From: $Bill Luebkert [mailto:[EMAIL PROTECTED]
Sent: Friday, October 29, 2004 11:18 AM
To: Cai, Lixin (L.)
Cc: [EMAIL PROTECTED]
Subject: Re: [Perl-unix-users] How can I redire
I am thinking I did not describe the problem clear, the following is my
code -- test.pl
###
#!/usr/bin/perl
my $ldapsearch = "/usr/bin/ldapsearch";
my $command = "$ldapsearch -x -LLL -h \"cds2.ford.com\" -b \"ou=People,
o=Ford,c=US\" \"uid=lcai3\" uid fordU
Cai, Lixin (L.) wrote:
> I am thinking I did not describe the problem clear, the following is my
> code -- test.pl
>
> ###
> #!/usr/bin/perl
>
> my $ldapsearch = "/usr/bin/ldapsearch";
> my $command = "$ldapsearch -x -LLL -h \"cds2.ford.com\" -b \"ou=Peopl
Cai, Lixin (L.) wrote:
> I have a question,
>
> How can I redirect STDERR to a file, insead of output to the terminal?
Depends on your shell syntax.
perl fubar.pl 2>some_file
should get it if you're not using {t}csh.
--
,-/- __ _ _ $Bill LuebkertMailto:[EMAIL PROT
Cai, Lixin (L.) wrote:
> I have a question,
>
> How can I redirect STDERR to a file, insead of output to the terminal?
Depends on your shell syntax.
perl fubar.pl 2>some_file
should get it if you're not using {t}csh.
--
,-/- __ _ _ $Bill LuebkertMailto:[EMAIL PROT
I have a question,
How can I redirect STDERR to a file, insead of output to the terminal?
Thanks
Lixin
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
"Cai, Lixin \(L.\)" <[EMAIL PROTECTED]> writes:
> I have installed ActiveState perl Dev Kit and licenses. I do not know
> what command can make me open GUI debugger on linux. Like on Win32, if
> you run "perl -d test.pl", it open GUI debugger for you. Does anyone
> know it?
The PDK GUI debugger o
I have installed ActiveState perl Dev Kit and licenses. I do not know
what command can make me open GUI debugger on linux. Like on Win32, if
you run "perl -d test.pl", it open GUI debugger for you. Does anyone
know it?
Thanks a lot inadvance!
Lixin
___
13 matches
Mail list logo