Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I am trying to run netcat in listen mode on certain port and redirect all output to the file, eg. netcat -l -p 2345 >> systemout & and ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    11

    running netcat in background mode

    Hi all,

    I am trying to run netcat in listen mode on certain port and redirect all output to the file, eg.

    netcat -l -p 2345 >> systemout &

    and on another machine:

    tail -f /test/SystemOut.log | sed 's/\(.*\)/LPSERVER05 - \1/g' >/dev/tcp/192.168.179.59/2345

    It all looks fine but after writing 2048 bytes the listener netcat stops writing anything to the file. I believe it is waiting for input - any idea how can I make it fully background? Thank you.

  2. #2
    Just Joined!
    Join Date
    Jul 2009
    Posts
    6
    nice man....it very usefull for help me getting root..

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    11
    Any suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...