Ask a Question related to PERL Beginners, Design and Development.
-
Mehmet Ekici #1
Bidirectional pipes
Hi all,
I wonder how can I open pipe to STDIN and STDOUT of a process ?
Tnx.
Mehmet
Mehmet Ekici Guest
-
BiDirectional Sorting
Hi, I have a datagrid, which gets populated using a Stored Procedure I am using the standard sort comman Sub dg_SortCommand(ByVal source As... -
get rid of whitespace around pipes??
On Dec 17, LoneWolf said: Then split on /\s*\|\s*/. That regex reads "zero or more whitespace, a |, then zero or more whitespace". @fields... -
How do I set up bidirectional pipes over a network connection?
I have 2 Linux boxes I want to talk to each other over the local network using a Perl script. Is it possible to set up a bidirectional pipe so... -
How do I set up bidirectional pipes over a network connection ?
Dan Anderson wrote: You're talking about a TCP connection, which is bidirectional. You might look at the standard rdist(1) utility for this... -
bi-directional IPC / pipes / when to close??
Hi, I'm writing a C program that needs to bi-directionally communicate with with a forked/execvp'd process. Here is a sample program that... -
Mehmet Ekici #2
Re: Bidirectional pipes
Hello,
I tried it to use with sqplus username/passwd
after this I like to send some sql commands and get their results but
at some point system blocks and I don't get anything
$ph = open2 (\*Reader , \*Writer, "sqlplus xxx/yyy");
print Writer , "desc user_tables;\n";
while (<Reader>)
{
print ;
}
..... (it hang somewhere here )
print Writer , "desc dba_tables;\n";
while (<Reader>)
{
print ;
}
Sudarshan Raghavan
<sraghava@kyocera-wi To: [email]beginners@perl.org[/email]
reless.com> cc:
Subject: Re: Bidirectional pipes
09/02/2003 11:21 AM
[email]Mehmet.Ekici@alcatel.com.tr[/email] wrote:
perldoc IPC::Open2>Hi all,
>I wonder how can I open pipe to STDIN and STDOUT of a process ?
>
If you need a handle to STDERR
perldoc IPC::Open3
>
>Tnx.
>Mehmet
>
>
>
>
>
--
To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email]
For additional commands, e-mail: [email]beginners-help@perl.org[/email]
Mehmet Ekici Guest
-
Sudarshan Raghavan #3
Re: Bidirectional pipes
[email]Mehmet.Ekici@alcatel.com.tr[/email] wrote:
The IPC::Open2 manpage mentions a warning on similar lines. I am not>Hello,
>I tried it to use with sqplus username/passwd
>
>after this I like to send some sql commands and get their results but
>at some point system blocks and I don't get anything
>
>$ph = open2 (\*Reader , \*Writer, "sqlplus xxx/yyy");
>
>print Writer , "desc user_tables;\n";
>while (<Reader>)
>{
> print ;
>}
>
>.... (it hang somewhere here )
>
entirely sure about using this module with sqlplus and any associated
caveats, you might want to google on this topic. I guess you are using
an oracle database, why not use DBI for this purpose. You will
interested in these modules
DBI (perldoc DBI)
DBD::Oracle (hope I got the name right. perldoc DBD::Oracle, you can
download and install this module from [url]http://search.cpan.org[/url])
>print Writer , "desc dba_tables;\n";
>while (<Reader>)
>{
> print ;
>}
>
>
>
>
>
>
>
>
> Sudarshan Raghavan
> <sraghava@kyocera-wi To: [email]beginners@perl.org[/email]
> reless.com> cc:
> Subject: Re: Bidirectional pipes
> 09/02/2003 11:21 AM
>
>
>
>
>
>
>Mehmet.Ekici@alcatel.com.tr wrote:
>
>
>>>>Hi all,
>>I wonder how can I open pipe to STDIN and STDOUT of a process ?
>>
>>
>>
>perldoc IPC::Open2
>
>If you need a handle to STDERR
>perldoc IPC::Open3
>
>
>>>>Tnx.
>>Mehmet
>>
>>
>>
>>
>>
>>
>>
>
>--
>To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email]
>For additional commands, e-mail: [email]beginners-help@perl.org[/email]
>
>
>
>
>
>
>
>
>Sudarshan Raghavan Guest
-
Mehmet Ekici #4
Re: Bidirectional pipes
Hi,
I have already using DBI module, I just wanted to explain with an example.
Let think that I want to be root user and issue some command in that case I
also need
bidirectional pipes.
su - root
Password ....
execute some commands here .
Mehmet
Sudarshan Raghavan
<sraghava@kyocera-wi To: [email]beginners@perl.org[/email]
reless.com> cc:
Subject: Re: Bidirectional pipes
09/02/2003 02:27 PM
[email]Mehmet.Ekici@alcatel.com.tr[/email] wrote:
The IPC::Open2 manpage mentions a warning on similar lines. I am not>Hello,
>I tried it to use with sqplus username/passwd
>
>after this I like to send some sql commands and get their results but
>at some point system blocks and I don't get anything
>
>$ph = open2 (\*Reader , \*Writer, "sqlplus xxx/yyy");
>
>print Writer , "desc user_tables;\n";
>while (<Reader>)
>{
> print ;
>}
>
>.... (it hang somewhere here )
>
entirely sure about using this module with sqlplus and any associated
caveats, you might want to google on this topic. I guess you are using
an oracle database, why not use DBI for this purpose. You will
interested in these modules
DBI (perldoc DBI)
DBD::Oracle (hope I got the name right. perldoc DBD::Oracle, you can
download and install this module from [url]http://search.cpan.org[/url])
>print Writer , "desc dba_tables;\n";
>while (<Reader>)
>{
> print ;
>}
>
>
>
>
>
>
>
>> Sudarshan Raghavan[email]beginners@perl.org[/email]> <sraghava@kyocera-wi To:
> reless.com> cc:Bidirectional pipes> Subject: Re:> 09/02/2003 11:21 AM>>>
>
>
>
>Mehmet.Ekici@alcatel.com.tr wrote:
>
>
>>>>Hi all,
>>I wonder how can I open pipe to STDIN and STDOUT of a process ?
>>
>>
>>
>perldoc IPC::Open2
>
>If you need a handle to STDERR
>perldoc IPC::Open3
>
>
>>>>Tnx.
>>Mehmet
>>
>>
>>
>>
>>
>>
>>
>
>--
>To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email]
>For additional commands, e-mail: [email]beginners-help@perl.org[/email]
>
>
>
>
>
>
>
>
>
--
To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email]
For additional commands, e-mail: [email]beginners-help@perl.org[/email]
Mehmet Ekici Guest
-



Reply With Quote


