Results 1 to 4 of 4
how would i get the output on screen to dump to a file w/o interacting w/ the prog?
i use bdc and need to have a list of files it ...
- 05-24-2007 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 90
redirect screen output?
how would i get the output on screen to dump to a file w/o interacting w/ the prog?
i use bdc and need to have a list of files it misses, i get 'update failed' all the time.
this is kinda what appears, but not real output:
bdc --arc --delete --moves /mnt/$whatever/
i get:
/mnt/$whatever/infected file.exe >> infected: $virusname
/mnt/$whatever/infected file.exe >> deleted
/mnt/$whatever/infected file.exe >> update failed
when you got this 90000 times, it gets kinda old to have to keep scanning and searching the results, which go offscreen.
i wish i knew how to get it to see the FILENAMES and store them and go back and kill them, but just having a list helps. any ideas?
- 05-24-2007 #2
Have you tried
command bla bla >> logfile
This saves the output to 'logfile'
Or you could of course do:
command bla bla | lpr
(sends output to the printer)
- 05-25-2007 #3
If you want to review the output later you can just use >:
Any output from "command" will be redirected to a file named "logfile". If you just want the messages to go away entirely (and don't need to review them later you can redirect to null:Code:command parameter > logfile
This has essentially the same effect as telling the program to run in "silent" mode, since all messages are redirected into nothing, thus they just disappear.Code:command parameter > /dev/null
Registered Linux user #270181
TechieMoe's Tech Rants
- 05-25-2007 #4Just Joined!
- Join Date
- Nov 2006
- Posts
- 90
that simple? damn! bash scripting seems so hard @ first, but after awhile on forums...


Reply With Quote
