LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-07-2007, 10:55 PM   #1
Kotresh
LQ Newbie
 
Registered: Mar 2007
Posts: 15

Rep: Reputation: 0
1+0 records in how to disiable in DD command "1+0 records out"


hi
if i use DD command then it is giving me
1+0 records in
1+0 records out

but i dont want this to display.plz help me to disable this one


Regards
Kotresh
 
Old 03-08-2007, 02:24 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You could redirect stdout to /dev/null:
Code:
dd ... > /dev/null
You'll still get the messages on stderr, but not those on stdout.
 
Old 03-08-2007, 08:54 AM   #3
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Quote:
Originally Posted by timmeke
You could redirect stdout to /dev/null:
Timmeke, on what version of dd did you try this out?
The ones I test (dd (coreutils) 5.93 and dd (coreutils) 5.2.1) write the summary to stderr. In that case you need to redirect stderr -- either of
Code:
dd ... >& /dev/null              for (t)csh, or
dd ... 2> /dev/null              for (ba)sh.
depending on your shell.

Last edited by Quigi; 03-08-2007 at 11:26 AM.
 
Old 03-08-2007, 08:57 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
I didn't actually test it. I assumed it would print on stdout, as normal tools do.
 
  


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
"No DNS records" error nesargha Linux - Server 2 01-19-2007 04:44 AM
cdrecord command-line parentheses "(" ")" coolingtower Linux - Software 1 10-28-2005 11:49 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration