LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   echo data in to a file (https://www.linuxquestions.org/questions/linux-newbie-8/echo-data-in-to-a-file-187349/)

xlord 05-29-2004 11:22 AM

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?

szobi 05-29-2004 11:41 AM

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?

xlord 05-29-2004 11:51 AM

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

szobi 05-29-2004 12:19 PM

is it working if you try something like "echo hello >> hello"?


All times are GMT -5. The time now is 06:48 AM.