LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-17-2003, 02:48 AM   #1
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Rep: Reputation: 30
A good easy Question :)


Ok. Say I want to take the output of a program and "record' it.

IE. Say I type Make......it does all of its stuff, and then exits.

How could I record all of that into a file?

Now, how could I record all of that WHILE the program is executing, not at the end of the execution? THANKS!!!
 
Old 08-17-2003, 02:49 AM   #2
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
Sweet....as usual....I answered my own question.....

You can use:

nmap -sT localhost|cat >hist

And it puts it in there.....is there an easier way or is that normal? Thanks!
 
Old 08-17-2003, 03:01 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You've basically got a double redirection.

nmap -sT localhost > hist

should do it. Unless the pipe to cat is doing something I'm missing, which is very likely. Is that making the difference between on-the-fly reporting and a finished report? Is that what you were specifically interested in? I would think that would just drag it off to cat and spit out the file.

Anyway - depending on your specific goals, you might also want to look into 'tee'.
 
Old 08-17-2003, 03:21 AM   #4
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
Ah, very cool...thanks!
 
  


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
I need a good easy to use 64 bit distro usernameddr Linux - Distributions 3 03-22-2005 11:49 AM
Good, easy to install virus scanner fhiggins Linux - Security 4 11-06-2004 09:19 AM
Good easy firewalls killi Linux - Security 3 06-15-2004 07:17 PM
what is a good but easy to use dialer darkone66669 Linux - Software 9 04-30-2004 05:05 AM
Good easy-to-use music software? MadCactus Linux - Software 2 09-01-2003 03:26 PM

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

All times are GMT -5. The time now is 02:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration