![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cp output /dev/null results in not a directory | stevesmo | UNIX for Dummies Questions & Answers | 1 | 05-22-2009 04:20 PM |
| Printer directed at /dev/null still spools requests | Brantley | SCO | 1 | 06-12-2008 03:24 PM |
| Goal-directed event processing | iBot | Complex Event Processing RSS News | 0 | 03-05-2008 12:00 AM |
| Removing Null data in output | liketheshell | Shell Programming and Scripting | 2 | 08-13-2007 05:59 PM |
| URGENT - setup port and dump all output to /dev/null or a file | frustrated1 | SUN Solaris | 1 | 04-05-2006 08:36 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
tar not reading if output directed to /dev/null
I stumbled across a somewhat strange behavior of tar and find no explanation for it: i was testing a DVD for read errors and thought to simply tar the content and direct the output to /dev/null:
Code:
tar -cvf - /my/mountpoint/*ts > /dev/null Code:
tar -cvf - /my/mountpoint/*ts > /tmp/somefile My question is, why didn't it read the files before? Is there something i am missing? bakunin |
|
||||
|
I too did experimentation, but it displayed all the file names.
Before that why you would want to tar and check the integrity, better you can do by reading all the files !! Use find command with exec, or use dd command with bs & count to read. |
|
||||
|
First off, I'd like to state that i do NOT have a problem. I just want to achieve a better understanding. So you don't need to tell me workarounds, as i have already found one.
Quote:
Quote:
In fact (as i have stated in my first post) the command worked the way i wrote it when i used a real file (instead of /dev/null) as output destination. It is this inconsistency - the command reading all the files when a real file is the destination and not working, when the destination is /dev/null - i want to understand. bakunin |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|