SUMMARY: Solaris 9 - reading data between pipes (or is this a /proc question?)

From: Birl <sbirl_at_temple.edu>
Date: Tue Sep 23 2003 - 11:10:27 EDT
NOTE: Im only a peon with NO buying or decision-making power.
      Do NOT spam or telemarket me about SUN products or services.


Received about 6 responses.  (Original post is down below)

4 of which said I should have piped to 'tee' first:
     nmap | tee /tmp/nmap.out | mailx

1 mentioned 'truss', but might not provide enough detail.

1 mentioned that I should have redirected nmap to a file then emailed the
file.  That would have been the obvious choice, but of course I wasnt
thinking at the time.  :p



I quickly tried 'truss' on nmap but so much data is going past I think
I'll have to grep.  truss on mailx shows the process sleeping.


Thanks for the solutions.
Birl



As it was written on Sep 23, thus Birl typed:

Original post:  Return-Path: <sunmanagers-bounces@sunmanagers.org>
Original post:  Sender: sunmanagers-bounces@sunmanagers.org
Original post:  Date: Tue, 23 Sep 2003 10:30:10 -0400 (EDT)
Original post:  From: Birl <sbirl@temple.edu>
Original post:  To: sunmanagers@sunmanagers.org
Original post:  Subject: Solaris 9 - reading data between pipes (or is this a /proc question?)
Original post:
Original post:  Hello once again gurus:
Original post:
Original post:  I hope I phrase this question correctly.  I tried to Google for the
Original post:  answer, but Im not sure if I sent the query correctly.
Original post:  (used:  Solaris read between pipe process)
Original post:
Original post:
Original post:  I executed this command back on Friday the 19th:
Original post:
Original post:  # nmap <arguments> <server> | mailx sbirl
Original post:
Original post:  I told nmap to run REAL SLOW (-T Paranoid) while scanning the server so
Original post:  that it doesnt crash.  Problem is I cannot tell how far along in the scan
Original post:  it is.
Original post:
Original post:  I poked around /proc/16615 which is nmap and /proc/16616 which is mailx
Original post:  to see if the output was in a "file" in either process, or if the output
Original post:  is in a temp file on the hard drive.
Original post:
Original post:  How can I locate the output of nmap?  Would I need C-code to hook into the
Original post:  process?
Original post:
Original post:
Original post:
Original post:  Thanks
Original post:
Original post:   Scott Birl
Original post:   Senior Systems Administrator            Computer Services   Temple University
Original post:  ====*====*====*====*====*====*====*====+====*====*====*====*====*====*====*====*
Original post:
Original post:
Original post:  NOTE: Im only a peon with NO buying or decision-making power.
Original post:        Do NOT spam or telemarket me about SUN products or services.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Sep 23 11:10:23 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:23 EST