HP3000-L Archives

May 2000, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Eben Yong <[log in to unmask]>
Reply To:
Date:
Tue, 30 May 2000 17:21:47 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Hi Ted,

Thanks for the response... I was trying to do this in Perl but was not
succeeding... tried again with renewed vigor and it seems to have worked...
thanks for the input!

Eben

#THIS works!
    open(FILE1, '+>FILE1');
    print {FILE1} "1\n";
    close(FILE1);

-----Original Message-----
From: Ted Ashton [mailto:[log in to unmask]]
Sent: Tuesday, May 30, 2000 4:43 PM
To: Eben Yong
Subject: Re: Another Apache/iX and Perl/iX system() question


Eben,
  As always, Mark will give you the best answer :-), but I'll give it a shot
anyway.  Here, so far as I can tell, you aren't having a buffering problem,
but a permissions one if any.  Of course, your program appears to be
printing
something to STDOUT, calling system which in turn calls the CI which in turn
echoes '123' out to FILE1 (not printing anything to STDOUT) and then prints
some other stuff to STDOUT.  Is that what you are wanting to accomplish?
Would
it not be easier to just open the file in perl, print to it and close it
again?

Ted "P'raps I've misunderstood" Ashton
--
Ted Ashton ([log in to unmask]), Info Sys, Southern Adventist University
          ==========================================================
A theory has only the alternative of being right or wrong. A model has a
third possibility: it may be right, but irrelevant.
                                        -- Eigen, Manfred (1927 - )
          ==========================================================
         Deep thoughts to be found at http://www.southern.edu/~ashted

ATOM RSS1 RSS2