LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   passing the output of modprobe to a file (https://www.linuxquestions.org/questions/linux-newbie-8/passing-the-output-of-modprobe-to-a-file-733684/)

htamayo 06-17-2009 02:12 PM

passing the output of modprobe to a file
 
I'm trying to get the output of the modprobe command to a file, I'm trying like this: # modprobe fglrx > fgl.txt, but the fgl.txt files is empty. My question is: how can I get the output of modprobe to fgl.txt ?

Regards

David the H. 06-17-2009 02:17 PM

If modprobe succeeds in its action, there's no output to send to a file. You can use the -v "verbose" option to make it tell you what it's doing.

gilead 06-17-2009 06:56 PM

To add to this, its error output will got to stderr, not stdout. You could use this to capture the error output as well:
Code:

modprobe fglrx > fgl.txt 2>&1


All times are GMT -5. The time now is 05:08 PM.