where.
_
Bruno Bellenger
Sr. Network/Systems Administrator
-Original Message-
From: Fauzi Ashurex [SMTP:[EMAIL PROTECTED]]
Sent: Monday, May 22, 2000 19:14
To: Perl-Win32-Users Mailing List
Subject: RE: s
The questions are not related.
How are you executing it?
Using this in temp.pl
print @ARGV;
And a command line of
perl temp.pl red yellow blue
I get this output
redyellowblue
Which is what I would expect.
> On Behalf Of Peter Eisengrein
>
>
> Similar question...
t;. It executes and exits without error,
yet it doesn't give any output. Any ideas?
-Original Message-From: Frank Merrow
[mailto:[EMAIL PROTECTED]]Sent: Monday, May 22, 2000 1:30
PMTo: Perl-Win32-Users Mailing ListCc: Perl-Win32-Users
Mailing ListSubject: RE: system()
> 2- $Tag = system ("gettag.pl -q $TagName") ;
> print "Tag: $Tag";
>
> * Two things happen here:
> A- If true will print to the screen
> 1 --> from the call to system
> Tag:0 --> from print
>
> B- if not true will print to the screen
>
Fauzi Ashurex wrote, on Monday, May 22, 2000 13:14
: I want to execute "gettag.pl -q TagName" and capture the output of the
: command, I have tried different ways, but no luck!
: The "gettag.pl -q TagName" will return one "1" if it's true, the TagName
: exist in the Tagdb, else will return zero "0
I know they should work!
Am I missing something?
Thanks for any advice.
-Fauzi
-Original Message-
From: Bellenger, Bruno (Paris)
[mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 21, 2000 11:55 PM
To: Perl-Win32-Users Mailing List
Subject: RE: system();
>"Hogue, Jon" wrote:
On Mon, 22 May 2000 10:14:03 -0700, Fauzi Ashurex <[EMAIL PROTECTED]>
wrote:
>1- open(FOO, "gettag.pl -q $TagName |");
Try
open(FOO, "$^X gettag.pl -q $TagName |");
>I have used all those techniques in the past and I know they should work!
>Am I missing something?
Programs started usin
and I know they should work!
Am I missing something?
Thanks for any advice.
-Fauzi
-Original Message-
From: Bellenger, Bruno (Paris) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 21, 2000 11:55 PM
To: Perl-Win32-Users Mailing List
Subject: RE: system();
>"Hogue, J
Title: RE: system();
Does not work on Win9x.
-Peter
Peter A. Vogel
Manager, Engineering Operations
iReady Corporation
http://www.iready.com http://www.iready.net
> -Original Message-
> From: Joe Schell [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 22, 2000 7:35 AM
&
'2>&1' works on WinNT. I am not so confident that it works in the standard
shell for win 9x. Has anyone verified this?
> Behalf Of Bellenger, Bruno (Paris)
>
>
> >"Hogue, Jon" wrote:
> >> I want to run a dos command and play with the output of the
> command.
> >>
> >> For exam
>"Hogue, Jon" wrote:
>> I want to run a dos command and play with the output of the
command.
>>
>> For example,
>>
>> If I do system("foo.exe"), how do I get the ouput of foo.exe.
(not the exit
>> status).
>Open it in a pipe:
>#open(FOO, "
"Hogue, Jon" wrote:
> I want to run a dos command and play with the output of the command.
>
> For example,
>
> If I do system("foo.exe"), how do I get the ouput of foo.exe. (not the exit
> status).
Open it in a pipe:
open(FOO, "foo.exe|");
while () {
# blah
}
close(FOO);
(Note: I've as
open (FOO, "foo.exe |") # Spawn foo.exe with a pipe
or die "Couldn't fork: $!";
while (my $line = )
{
[...]
}
close (FOO);
my $ret = $?; # Get return code.
That will run foo.exe, and pipe its output, in real-time, to the file stream
FOO. So, every line that foo.
Hogue, Jon wrote, on Tuesday, May 16, 2000 15:11
: If I do system("foo.exe"), how do I get the ouput of foo.exe.
: (not the exit
: status).
By not doing system("foo.exe"). Use backticks:
$results = `foo.exe`; # or @results to get an array w/lines
Joe
===
do:
$output = ` foo.exe `;
Claudio
-Mensaje original-
De: Hogue, Jon [mailto:[EMAIL PROTECTED]]
Enviado el: Tuesday, May 16, 2000 4:11 PM
Para: Perl-Win32-Users Mailing List
Asunto: system();
I want to run a dos command and play with the output of the command.
For example,
I
cklee wrote:
> I used system trying to invoke an application with syntax:
> system("applname.exe");
> Perl didn't do anything except print out the output above the system line
> to the browser. I ran the same Perl program at the DOS prompt, it works.
What browser? Are you trying to do this insi
wendy wrote:
>
> this perl script is to download file from the server to client PC and it
> can be done.
>
> open(checkoutfile, $temp2) || die "Cannot open file";
> print "Content-Disposition: attachment; filename=$filename1\n";
> print "Content-Type: application/biller\n\n";
>
> while()
> {
17 matches
Mail list logo