Want cpio to run silent -- no print to display [SOLVED]
Is there a way to get cpio to ... SHUT UP!!!? :)
Doing something like this for a test: find /u/temp -print | cpio -ovB -Hcrc >/u/test.cpio I've tried the --quiet option but that does not stop cpio from filling the screen with a list of all the contents in the temp path. I don't want any progress display. Just want cpio to do the deed and stay silent about the whole process. Google not being my friend on this search :( |
can you not just chuck stderr to /dev/null?
find /u/temp -print | cpio -ovB -Hcrc >/u/test.cpio 2> /dev/null |
Thanks acid_kewpie :doh: ... that did the trick. :hattip: I tried similar but had it turned around like this and cpio complained too many arguments:
find /u/temp -print | cpio -ovB -Hcrc >/u/test.cpio >/dev/null 2>&1 Your solution (this) works great!!: find /u/temp -print | cpio -ovB -Hcrc >/u/test.cpio 2> /dev/null |
Ahh well by pushing 2>&1 you're redirecting the debug data into the raw cpio output and buggering it all up royally!
|
Quote:
Remove the -v to get rid of the list and add --quiet (to prevent the summary of blocks copied from being printed). EDIT: What you wanted was this: Code:
find /u/temp -print | cpio -oBHcrc --quiet >/u/test.cpio |
All times are GMT -5. The time now is 09:10 AM. |