RE: system();

2000-05-23 Thread Bellenger, Bruno (Paris)
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

RE: system();

2000-05-22 Thread Joe Schell
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...

RE: system();

2000-05-22 Thread Peter Eisengrein
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()

RE: system();

2000-05-22 Thread Hogue, Jon
> 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 >

RE: system();

2000-05-22 Thread Joseph P. Discenza
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

RE: system();

2000-05-22 Thread Frank Merrow
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:   

Re: system();

2000-05-22 Thread Jan Dubois
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

RE: system();

2000-05-22 Thread Fauzi Ashurex
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

RE: system();

2000-05-22 Thread Peter Vogel
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 &

RE: system();

2000-05-22 Thread Joe Schell
'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

RE: system();

2000-05-22 Thread Bellenger, Bruno (Paris)
>"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, "

Re: system();

2000-05-21 Thread Hamish Moffatt
"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

RE: system();

2000-05-16 Thread Chad Wallace
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.

RE: system();

2000-05-16 Thread Joseph P. Discenza
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 ===

RE: system();

2000-05-16 Thread Pires Claudio
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

Re: system commands

2000-05-15 Thread Ned Konz
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

Re: system call - Running Dos command with perl in NT env

2000-05-10 Thread $Bill Luebkert
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() > {