LinuxQuestions.org
Help answer threads with 0 replies.
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 06-17-2009, 03:12 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
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
 
Old 06-17-2009, 03:17 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 06-17-2009, 07:56 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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
 
  


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
passing awk output to $variable for shell script? NewnanNOC Programming 3 10-23-2008 03:08 PM
C socket : how Execute shell program from server, and passing the output to client? penyu Programming 6 10-25-2007 02:25 AM
C program FILE passing exvor Programming 3 09-19-2006 04:52 AM
passing command output to variable Infernal211283 Linux - Newbie 12 01-11-2006 06:54 AM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 08:17 PM


All times are GMT -5. The time now is 06:49 PM.

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