The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX 5.3 - There is no process to read data written to a pipe vigsgb UNIX for Advanced & Expert Users 6 05-22-2009 05:59 AM
pipe read and write with many forked children steveneliuk High Level Programming 5 05-23-2007 07:03 AM
Pipe Problem vivivo2000 High Level Programming 2 01-11-2006 04:43 AM
read after pipe problem OSX10.4 relyveld Shell Programming and Scripting 5 07-07-2005 09:56 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-12-2006
JDS JDS is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 2
Question Problem in read() from a pipe

Hi,
Can any one please help me with this. Am struggling hard to get a solution.

I am doing telnet through a C program and getting the stdout file descriptor of the remote machine to pipe.

read() function is getting data, But whenl it receives SOH character ie. ^A ( Start of heading = Console Interrupt) read() is unable to get the characters which are mentioned after the SOH. Even on next read() it is unable to get the data.

My program works fine if I do telnet from a Solaris machine to another Solaris machine.

But the above problem in read() is coming when I do telnet from Solaris machine to a Linux machine. Only on the Linux machine the SOH character is prompted.

I will appreciate if somebody can give some soltuion.

Cheers,
JDS

Last edited by JDS; 10-12-2006 at 07:31 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0