LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 12:22 PM   #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, 12:41 PM   #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, 12:51 PM   #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, 01: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:20 AM
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 03:59 PM
How do I echo to both standard out and to a file? Br. Nicholas Linux - General 11 10-12-2004 04:09 PM
Using echo to output a string to a file with forward slashs chrisk5527 Linux - General 15 06-21-2003 03:04 PM
Echo /devPrinting doesn't work, echo /usb/lp0 works, Testpage works, Printing doesn't Hegemon Linux - General 3 08-15-2002 02:13 PM


All times are GMT -5. The time now is 10:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration