Putting error messages on the screen into a file...
Well, hopefully this will be a simple question here. It seems this morning im having a major brain fart and cant remember how to do a bunch of things.
Here is what I'm doing. Im working with samba 3.0 beta to do some preliminary testing. However, im running into a few snags when trying to mount certain things and use some of the new features...When this happens, it kicks out errors onto the screen and gives me some codes and things to check.
What i'd like to do is put these error messages into a file and keep them handy.
I've tried the tee command, for example:
samba command to mount share blah blah blah | tee > error.log
Hoping that this would kick out the errors to my log. But it's not.
So the next thing Im trying to do is somehow copy the messages off the screen and kick them to another file.
Even if I have to type the full message, how can I put it into a file without opening up a text editor...
What I mean is: Can I type the message and then somehow use cat to put it into a file?
cat error message, blah blah > error.log