cURL / Mailing Lists / curl-users / Single Mail

curl-users

Is it possilbe to dread a FIFO on remote server via curl?

From: <Zhuoqiong.Wu_at_alcatel-sbell.com.cn>
Date: Tue, 25 Feb 2003 17:44:19 +0800

Hello,

I am going to read the output from a pipe created on a remote server via curl.
Curl exits and complains " not a plain file " .
It seems that FTP doesn't support this usage. ?

Does anyone have any good idea?

Regards,
wuzq

Here is my script running on remote server:

#!/usr/local/bin/perl
 #
 # Create a fifo and then return the date
 # back to the caller when FIFO is read.
 #
 $path = "./mydate";
     unless (-p $path) { system("mkfifo -m 0666 $path"); }
     open(FIFO,"> $path") || die "Cannot open $! \n";
     $date = `date`;
     chop($date);
     print FIFO "[$date]";
     close FIFO;
 # Remove when done.
 unlink $path;

And I am going to read "mydate" from curl.

ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÓ†+,ù޵隊X¬²š'²ŠÞu¼ÿN§gž‘g¥r‰ž¶ˆzH^j÷§þm§ÿÿ¶§’ž“÷(›û
Received on 2003-02-25