FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » redirect stdout and stderr to PHP variables?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: redirect stdout and stderr to PHP variables? [message #176845 is a reply to message #176842] Sat, 28 January 2012 17:40 Go to previous messageGo to previous message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma:
Senior Member
On Sat, 28 Jan 2012 05:03:14 -0700, crankypuss wrote:

> On 01/27/2012 04:25 AM, M. Strobel wrote:
>
>> Am 27.01.2012 11:22, schrieb crankypuss:
>>
>>> I'm going through the transition from many years of Windows to
>>> using Linux, and although I mostly like it, I find the tendency for
>>> scripts to rely on command output run through pipes to be abhorrent
>>> since the whole concept of validity checking goes out the window
>>> when you swallow that paradigm, and writing a file when it isn't
>>
>> Can you expand on that? There must be a misunderstanding, the command
>> you run does all validity checking, me thinks.
>
> Look at any bash script longer than about 4 lines. You'll find it
> issuing some command and running it through sed or whatever and then
> through the next stage of the pipe and basically *assuming* that
> command output formats never change and nothing can go wrong go wrong.

That's just how good unix utilties do their work. They never change
output formats except by some kind of request, usually a command option.
The defaults freeze at release, and if there's a different default
output, the utility name will change as well.

--
"Every new technology carries with it an opportunity to invent a new
crime." --Laurence Urgenson (an assistant chief US attorney),
speaking in 1987 about the first arrests for what was later called
cellphone cloning.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: enter search term via code?
Next Topic: FounderDating - Helping entrepreneurs find their co-founder & start companies!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 23:29:23 GMT 2024

Total time taken to generate the page: 0.04889 seconds