- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dd output
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 03:04 PM
01-02-2001 03:04 PM
I am using dd inside an x-window program that wipes classified disks of their data and those messages look kind of tacky. If I had the dd source code maybe I could modify that and incorporate it into my program, or are there other commands I could use to accomplish the same thing?
Thanks,
Greg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 04:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 04:53 PM
01-02-2001 04:53 PM
Re: dd output
Or 2>/dev/null if you prefer. Logging to file is safer, so that you can check for error conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 10:26 PM
01-02-2001 10:26 PM
Re: dd output
Redirecting the standard error file descriptor is a mechanism that you can use with many (if not all) programs, not only with dd.
dd if=inputfile of=outputfile bs=xx >/dev/null 2>&1
discards both standard output and standard error
dd if=inputfile of=outputfile bs=xx 2>/dev/null
discards only std error
dd if=inputfile of=outputfile bs=xx 1>log.out 2>log.err
redirects std output and std error in 2 different files.
When redirecting, keep in mind that file descriptor 1 is std output, 2 is std error, and 0 is std input.
Those 3 file descriptors are opened automatically by all programs at runtime.
Best regards,
Dan
PS: have a look at 'man sh-posix', paragraph called Input/output for more explanations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 05:55 AM
01-03-2001 05:55 AM
Re: dd output
One final note: both > and 2> will most likely overwrite the log file so be careful. If you want to append to the log file, use either >> or 2>>.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 10:24 AM
01-03-2001 10:24 AM
Re: dd output
Greg