LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2004, 11:22 AM   #1
xlord
Member
 
Registered: Mar 2002
Posts: 75

Rep: Reputation: 15
echo data in to a file


How do i insert all data from nmap in to a file?
i did something like

nmap -P0 localhost >> localhost.txt 2>&1

but that doesnt seem to work for me

any idea?
 
Old 05-29-2004, 11:41 AM   #2
szobi
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
Re: echo data in to a file

Quote:
Originally posted by xlord
How do i insert all data from nmap in to a file?
i did something like

nmap -P0 localhost >> localhost.txt 2>&1

but that doesnt seem to work for me

any idea?
it should work. can you see any output from the command "nmap -P0 localhost" if you don't redirect the output?
 
Old 05-29-2004, 11:51 AM   #3
xlord
Member
 
Registered: Mar 2002
Posts: 75

Original Poster
Rep: Reputation: 15
Ya it takes a while but ya.. i get all my ports that are open and filtered ones.. but when i try ti redirect it to the file it doesnt work
 
Old 05-29-2004, 12:19 PM   #4
szobi
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
is it working if you try something like "echo hello >> hello"?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create file using echo: /proc/sys/net/ipv4/ip_local_port_change rsumbeling Linux - General 4 07-17-2013 04:20 AM
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 02:59 PM
How do I echo to both standard out and to a file? Br. Nicholas Linux - General 11 10-12-2004 03:09 PM
Using echo to output a string to a file with forward slashs chrisk5527 Linux - General 15 06-21-2003 02:04 PM
Echo /devPrinting doesn't work, echo /usb/lp0 works, Testpage works, Printing doesn't Hegemon Linux - General 3 08-15-2002 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration