Operating System - HP-UX
1833460 Members
3526 Online
110052 Solutions
New Discussion

Re: Storing concept in HP-UX Server

 
SOLVED
Go to solution
Shivakumar_3
Advisor

Storing concept in HP-UX Server

I am communicating b/w QNX CLIENT and HP-UX Server.From the client i am passing a buffer with data to the HP-UX server.There i have to store it in a buffer and i have to write it into a file.The question is i will be getting data very frequently what can i use to store the incoming data and how can i access the stored data to write it into a file?
6 REPLIES 6
Mel Burslan
Honored Contributor

Re: Storing concept in HP-UX Server

QNX is a very esoteric operating system and very little known one. Unless someone here has the same exact setup as you do, you will have to provide more information about this buffer data passing process. What protocol does it use ? Is there a process litening to a port ? More detail is needed.
________________________________
UNIX because I majored in cryptology...
Rajesh SB
Esteemed Contributor

Re: Storing concept in HP-UX Server

Hi Shiv,

Give me more details on incoming data.
Whether is it stream of ascii data over TCP-IP or some other protocol.

Regards,
Rajesh
Shivakumar_3
Advisor

Re: Storing concept in HP-UX Server

I am taking a buffer which is of size 512kb containing binary data in QNX side.That buffer is transferred to HP-UX server through TCP/IP protocol.After i receive that packet i have to write it into a file.My question is i might be receiving many such packets but i want to store that packets in something(like mailbox in VMS) and then access that stored data to write it into a file?how can i do that?
Rajesh SB
Esteemed Contributor

Re: Storing concept in HP-UX Server

Hi,

For this socket program may help you.
If I search more info here. One of our project used some strategy to capture similar ASCII Data.

Update you, if I find any solution.

Regards,
Rajesh
Rajesh SB
Esteemed Contributor
Solution

Re: Storing concept in HP-UX Server

Hi Shiv,

You can find an utility "tcpdump" which serve your purpose.

tcpdump-3.9.3 A tool for network monitoring and data acquisition
Description: It is loosely based on SMI's etherfind utility but has been extensively rewritten so that none of the original code remains. It uses the includes and library from the libpcap package, which must be obtained and installed first before installing tcpdump itself.

You can download this utility at URL:

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/tcpdump-3.9.3/

Cheers,
Rajesh
harry d brown jr
Honored Contributor

Re: Storing concept in HP-UX Server

ON QNX:

mkfifo stuffings
echo "+ +" >.rhosts
write your stream of data to the fifo "stuffings"

ON your HP system

remsh QNXsystemname -l username dd if=/PATHto/stuffings | dd of=localfileonHPserver

and if you want to mail it, then on your HP system, do:

cat localfileonHPserver | uuencode localfileonHPserver.txt | mailx -m -s "subjecthere" username@domain.com


live free or die
harry d brown jr
Live Free or Die