Server :: Pipe 'echo' To 'netcat' - Sometime It Seems To Broken

Sep 2, 2010

I am running somes instances of Redis. I want to get Redis stats with following command:

Code:

$ echo "info" | nc <server_IP> <port>

but sometime it returns nothing. The first thing come to my mind is broken pipe or something like this. I always get the result if telnet to Redis and typing 'info' command. I also try pipe viewer to monitor the progress of data but it didn't help:

Code:

$ echo "info" | pv | nc <server_IP> <port>

View 2 Replies


ADVERTISEMENT

Programming :: Handle A Broken Pipe Exception (SIGPIPE) In FIFO Pipe?

Mar 2, 2011

I've written a simple server in linux used fork to create a FIFO pipe.The server create two FIFO pipe.One for server read data from client and write data to client.Then another pipe for client read data from server and write data to server.When the server read data from a client used server-pipe and then write data to client.But ,if the client no read open the pipe,the server side write will be crashed because of a broken-pipe SIGPIPE. How to check whether the read side is opened?Or,how to catch the SIGPIPE,and then my server will still execute on,not crashed!!

View 5 Replies View Related

Server :: Error: Write Failed: Broken Pipe

Apr 11, 2010

I connect to our server by ssh, default ssh client on Debian system.when I run a command that has large output on stdout (on shell) my connection is lost and I get error: "Write failed: Broken pipe"Unfortunate on our server there is limitation for connection per hour!

View 2 Replies View Related

Server :: Apache2 EnableSendfile And Error - Broken Pipe: Core_output_filter

Mar 2, 2010

I have installed a LAMP server (Debian Lenny + Apache2 + PHP Version 5.3.1-0.dotdeb.1). On this machine, my web application (PHP + MySQL) exists in 2 flavours:

- Dev
- Prod

In /etc/apache2/sites-available, I have ims & ims-dev, one for each instance. Their contents are identical in terms of settings, except for the paths (dev/prod):

Code:

<VirtualHost *:80>
ServerAdmin admin@domain.com
ServerName ims.domain.com
ServerAlias ims.domain.com

[code]....

why this difference when the settings are strictly identical? Do I need to add EnableSendfile off in my conf files to stop that?

View 14 Replies View Related

Server :: Bash Scripting Sending Write Error - Broken Pipe

Apr 19, 2010

I move a page from a server in SuSe to Debian and this script was working well but when I move the page to a Debian base server it is sending in the logs the following message:

cat: write error: Broken pipe, referer: [URL]

The cgi does the following, read a db file plain text that repeat each 15 lines an information where to look the seraching info. if it is there sends to the output the 15 lines block. but it was not sending errors in suse distro, does anybody knows why the cat's line are sending "cat: write error: Broken pipe," if I am not writing or making a pipe with ">" to none file.

View 8 Replies View Related

Networking :: Error - Java.net.SocketException: Broken Pipe

Jul 15, 2010

We are facing broken pipe exception while connecting to SMPP gateway through TCP/IP.on RHEL4 It is coming till we restart the application. Below is the exception we are getting. java.net.SocketException: Broken pipe

View 1 Replies View Related

Programming :: Python Script Gives Error - Broken Pipe

Jul 21, 2011

I am building a python script which works same as SMTP protocol. I have build separate functions in that for each command of SMTP, and after this i have integrated all those functions in a new function named as send_mail(so that i don't have to execute every function separately for every command). Now, when i execute the script for the first time it runs successfully, but for the second time it gives the error of "BROKEN PIPE". I really can't make out how the socket is getting closed.

View 5 Replies View Related

Fedora Networking :: Net Worked HP Printer Will Not Print-broken Pipe

Apr 10, 2009

my net worked HP printer will not print-broken pipe - this started after I had to switch off the printer at the mains in order to attend to a paper jam. Now it will not print apart from a test page. I am using Fedora 10 and the device info is "hp:/net/Officejet_Pro_L7500?ip=192.168.0.4"

View 5 Replies View Related

CentOS 5 :: Bash Script Under Cron Produces Broken Pipe

Apr 20, 2011

I have script which does file locking via flock and then writing it's pid into that file. It perfectly works being run by hand in terminal, running under cron on Debian, but somehow fails being run under cron on Centos 5.6. Script part and straced outputs are below.

bash code:

#setting lock
mylog "setting lockfile $LOCKFILE"
exec 200<> $LOCKFILE

[code]....

View 4 Replies View Related

Debian Programming :: Broken Pipe Error When Try Playing YouTube Playlist

Nov 16, 2014

I wrote y bash script that opens YouTube playlist using youtube-dl and VLC applications: the output of youtube-dl is the input of VLC. The only problem is VLC needs to be closed after each playlist item unless I get the error message of the operating system:

"ERROR: unable to write data: [Errno 32] Broken pipe".

I understand the reason but I don't know how to resolve it: it is possible to close previous STDIN of VLC without killing the entire VLC process so that a new youtube-dl instance can connect to the same VLC instance? In short this is my question. The problem is detailed here: Downloading and playing videos and subtitles.

View 0 Replies View Related

Fedora :: Error - Courier-imap Standard Output: Broken Pipe

Jul 22, 2010

I'm following the "The Perfect Server - Fedora12 x86_64 [ISPConfig 3]" instructions and I am encountering an error when trying to build the rpm for courier-imap (from page 4 of the HOWTO).

The command I run is:

Code:

rpmbuild -ta courier-imap-4.6.0.tar.bz2

The error is below:

Code:

INFO: LOGIN, user=confmdtest, ip=[127.0.0.1], port=[0], protocol=SMAP1
INFO: LOGOUT, user=confmdtest, ip=[127.0.0.1], headers=0, body=0, rcvd=26, sent=610, time=0
sort: fflush failed: standard output: Broken pipe

[code]....

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.85697 (%build)

View 3 Replies View Related

Debian :: Can't Upgrade Anything - Dpkg-deb: Subprocess Paste Killed By Signal (Broken Pipe) Errors Were Encountered While Processing

Apr 23, 2010

Unpacking replacement ffmpeg ... dpkg: error processing /var/cache/apt/archives/ffmpeg_5%3a0.5.1+svn20100411-0.0_i386.deb (--unpack): trying to overwrite '/usr/share/ffmpeg/libx264-ipod640.ffpreset', which is also in package libavcodec52 4:0.5.1-3 dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/ffmpeg_5%3a0.5.1+svn20100411-0.0_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

View 9 Replies View Related

Ubuntu :: SSH "Write Failed: Broken Pipe" For Some Users

May 10, 2010

I am having a truly bizarre problem when trying to set up my sheeva plug as a backup server. I have four users (one for each member of my family) that I want to give permission to ssh in (well, sftp in but they're essentially the same) and backup to an external harddrive.

My user works perfectly well and has done since I got the plug. So does a transmission user I set up to run the transmission daemon. With the other three users, however, I get the following error after SSH asks for the user's password:

Code:

Write failed: Broken pipe

This happens whether I try locally or over my network. I haven't been able to find a solution to it at all. I've made sure that /bin/bash was set as the shell and that the home directory is writeable with the correct permissions (ls -al /home):

Code:

drwxr-xr-x 7 root root 4096 Dec 21 19:25 .
drwxr-xr-x 21 root root 4096 Dec 17 19:27 ..

[code]...

The alternative for me would be to use netatalk and AFP but the problem is that there is no native support for AFP and so things like d�ja dup backup may not be able to mount the afp drive...

View 4 Replies View Related

Software :: Put Ssh Into Remote Machine - Error Write Failed: Broken Pipe (After Logged Into That Machine)

Jul 18, 2011

Whenever I put ssh into remote machine am getting the following messages. Write Failed: Broken Pipe (After logged into that machine ) Read Socket Failed: Connection reset by peer (While trying to log in ) Also known_hosts file is changed frequently.

View 1 Replies View Related

Ubuntu Networking :: Ssh "Connection Reset By Peer" - Write Failed: Broken Pipe

Feb 9, 2010

which cropped up today after no changes to the system: I can successfully ssh into my ubuntu 64-bit 9.10 machine (via OS X with iTerm), but after about 30 seconds, the connection drops with the message "Connection reset by peer Connection to xx.xx.xx.xx closed".

If I then try to immediately ssh back in I get: "Write failed: Broken pipe". If I try to immediately ping the machine instead, I cannot ping it until the ~10th try. Eventually I can log back in again, only to be kicked off after between 5 and 60 seconds. I called the network people and their are no known issue right now with networking. The networking on the ubuntu machine is otherwise fine, it seems. In the /var/log/auth.log file, it simple says:

Quote:
Feb 9 14:19:20 harriet sshd[4134]: Accepted password for xxx from xx.xx.xx.xx port 55105 ssh2
Feb 9 14:19:20 harriet sshd[4134]: pam_unix(sshd:session): session opened for user xxx by (uid=0)
Feb 9 14:19:28 harriet sshd[4046]: pam_unix(sshd:session): session closed for user xxx

The solution I come across to a similar problem is to add a "ClientAwakeInterval" number to sshdconfig, but this (as expected) doesn't fix my problem.

View 1 Replies View Related

Fedora Networking :: Connecting To Server With Netcat

Jul 10, 2009

I connected two machines, I have their given of the addresses ip in a static way and not with DHCP. I gave to the machine server the address: 192.168.0.1, and in the machine client the address 192.168.0.2.

View 5 Replies View Related

Networking :: Use Netcat As A Bridge To Connect Two Server?

Apr 11, 2011

i have 3 servers in 2 dcs as follows; server 1 (dc1 - dmz) --- server 2 (dc1 - internal) --- server 3 (dc2 - internal) Now I have an application in server1 that have to connect to port 44000 in server 3 but dc refuse to open connection saying they do not open connections between dmz and dc2 (i have no say over this).

However I can connect to virtually any port from server1 <-> server2 and also server2 <-> server3. Is it possible to do something like;

server1 <-> server2 <-> server3:44000 using nc to get the app work.

View 3 Replies View Related

Networking :: PING - Pipe 2 Versus Pipe 3

Apr 10, 2009

I'm doing ping between 2 RH servers through a VPN site2site tunnel and in some times I got in the result pipe 2 and another pipe 3 as I mark it in blue color below.

e.g.

64 bytes from 192.168.1.10: icmp_seq=0 ttl=128 time=0.229 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=128 time=0.287 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=128 time=0.278 ms

[code]....

What's the difference between pipe 2 and pipe 3 and what's the meaning of it?

View 1 Replies View Related

General :: $echo Cat Vs $cat Echo / Difference Between Them?

Dec 16, 2010

What is the difference between

$echo cat
$cat echo

View 1 Replies View Related

Programming :: EPOLL Echo Server Not Concurrent?

Feb 16, 2011

I am working on an epoll version of an echoserver that I am porting from a multithreaded version I wrote.What it should do: The server should get a connection from a client > say x client connected > print x message from said client. What it is doing: The server looks like it is only accepting one connection at a time, and any other clients are queued. When the queue is empty it looks like the program is aborting with a SIGABRT. EDIT:// fixed the program exiting in the close function. Still one client at a time

Code:
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>

[Code]...

View 5 Replies View Related

Server :: Sendmail - Pipe All Existing Users Incoming Emails To /dev/null?

Oct 24, 2009

Well I want my sendmail to pipe all users' incoming emails to /dev/null ... I just don't want to accept emails. Every user that exist on the system currently or will be made in future, I want their incoming emails to them to be piped to /dev/null .... I just want those users to be able to send emails.

View 1 Replies View Related

General :: Sending File Via Netcat?

Jan 20, 2010

I'm using something like this to send file from one computer to another:To serve file (on computer A):

cat something.zip | nc -l -p 1234 To receive file (on computer B): netcat server.ip.here. 1234 > something.zip can I do the opposite? Let's say I have file on computer B and I want to send it to A but not the way I wrote above, but by making computer that's supposed to receive file (A) be 'listening' server and connect computer that's 'sending' file (B) to server and send the file? Is it possible? I think it might be but I'm not sure how to do this.

In case my above explanation is messed up: How do I send file TO 'server' instead of serving the file on server and then taking it FROM it (like I did above)?

View 2 Replies View Related

Networking :: OpenSuSe 11.4 - How To Ping DNS Using Netcat

Jun 15, 2010

I am new in linux. I am using opensuse 11.4. How can I ping a DNS using netcat?

View 6 Replies View Related

Networking :: How To Send Udp Packet To The DNS Using Netcat

Jun 16, 2010

How can i send udp packet to the DNS using netcat in opensuse.

View 7 Replies View Related

Networking :: UDP - Stop Netcat Connecting?

Dec 9, 2010

I'm wondering if I can use netcat to listen to a UDP port and display ALL incoming packets, no matter where they're from. If I just do 'nc -u -l 1234' then netcat will listen for incoming packets and connect() to the source address of the first one it sees (I can see this with strace). Is there any (standard) way to stop the connect() call? I can make a hack to block connect() with a function of my own, but that'd be ugly

View 6 Replies View Related

General :: Rc Interface With Netcat For Vlc In Windows

Jun 29, 2010

i have to control vlc which is running on my pc through console application.I heared like it can be controlled using netcat and rc interface but not getting the procedures how exactly its can be implemented.So if anyone knows pls explain me with steps.i want to do this in windows and i'm using vlc version 0.8.6.

View 1 Replies View Related

Ubuntu :: Clone A Hard Drive Using Dd & Netcat?

Jan 7, 2010

i'm trying to clone a hard drive using dd & netcat.

Quote:

on target:
nc -l -p 1333 |dd of=/dev/sdb
on source:
dd if=/dev/sdb |nc 192.168.0.5 1333

However after a while since the process was initiated I get a

I/O error in filesystem ("....") meta-data dev ...block 0x..... ("xfs_read_buf") error 5 buf count 512 XFS: size check 2 failed

Further digging showed that the target hard drive was less in space by 100 kb. Both are 1 T drives seagte but different models, hence the diff in space maybe.The data on the original drive is only 900 GB.

View 6 Replies View Related

Ubuntu :: Netcat Output Pipes And Redirection ?

May 25, 2010

I'm trying to redirect nc command output but I can't do it.

I have tried this:

And this:

But it seems doesn't work.

View 3 Replies View Related

Ubuntu Networking :: Netcat Doesn't Seem To Work

Jul 27, 2010

I've tried to use netcat in the past and assumed it was my stupidity that was preventing it from working... but this is getting ridiculous. I'll execute nc -l 3333 on a server at 192.168.0.105 (after opening it on the firewall of course) then I run nc 192.168.0.105 3333 on my laptop (from 192.168.0.101). and nothing happens... i start typing and nothing comes up on the terminal.

I run nc -z 192.168.0.105 80 which should ideally do a port scan of port 80 on that server (of which I'm running a web server that clearly works) but it doesnt even give me any feedback. Nothing happens. Now when I use the verbose flag i see that I am indeed connecting to the specified port on the server successfully (so the port scan one is a success but only with the verbose flag... which shouldnt be the case I believe). But still once I have the server listening and the laptop connected... I type in both windows and nothing happens...

View 1 Replies View Related

Ubuntu Servers :: Why Can't Get Netcat To Work Even On Localhost

Oct 22, 2010

OK here's what I'm doing:

On terminal 1, I enter:

$ nc6 -vlp 5000
nc6: listening on 0.0.0.0 5000 ...

On terminal 2, I enter:

$ nc6 -v localhost 5000
nc6: ygt-asfandq (127.0.0.1) 5000 [5000] open

Now, as SOON as I make the connection on terminal 2, both netcats immediately quit back to the command prompt. The return code for both is 0.

I do not have ANYTHING in my firewall (I checked with sudo iptables -v -L)

I have attached a wireshark trace of the conversation..

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved