[SLL] curl question...

Xeno Campanoli xcampanoli at gmail.com
Thu Jun 12 14:12:56 PDT 2008


Xeno Campanoli wrote:
> I'm doing curl on a special resource URL that I cannot mention outside 
> my task.  I redirect all output with >mess.lst 2>mess2.lst, but I'm 
> getting "Other Output".  Anyone know what that could be?  I didn't know 
> HTTP did other channels.
> 
What appears to be happening is curl is talking to something or does 
something to spawn a whole bunch of processes, then, I think what is 
happening is the stdout that comes back from all those processes doesn't 
go into my recirected stdout, but comes to the screen/monitor, either 
because of some overflow, protocol confusion, or some misunderstanding 
of how it's supposed to work on my part.  At any rate, I can get the 
stuff, oddly, by going

x=$(curl args >stdoutfile 2>stderrfile)

into x, but that's really not what I want, because what I really need to 
do with it is:

x=$(curl args >stdoutfile 2>stderrfile &)

then know when it's done and put x on the end of stdoutfile, which would 
be a giant hassle.

xc




More information about the linux-list mailing list