Re: Very Basic shell logic question

2000-10-12 Thread Cameron Simpson
On Wed, Oct 11, 2000 at 09:17:46AM -0400, rpjday wrote: | > | p.s. dd if=/dev/hda bs=96k | gzip > test.gz for efficiency | > Though of course that still wastes time chucking data through the pipe | > between two programs. This: | > gzip test.gz | > should win. (Where'd the 96k come from - is

Re: Very Basic shell logic question

2000-10-12 Thread rpjday
On Wed, 11 Oct 2000, Steven W. Orr wrote: > No. Use dd to access devices. dd will automatically pick up the native > blocking factor for the device. On;y use blocking factors if you know what > you're doing. > methinks we've been here before, discussing the blocking factor. when all else fails,

Re: Very Basic shell logic question

2000-10-11 Thread Steven W. Orr
No. Use dd to access devices. dd will automatically pick up the native blocking factor for the device. On;y use blocking factors if you know what you're doing. -- -Time flies like the wind. Fruit flies like a banana. Stranger things have - -happened but none stranger than this. Does your driver'

Re: Very Basic shell logic question

2000-10-11 Thread rpjday
On Wed, 11 Oct 2000, Cameron Simpson wrote: > On Tue, Oct 10, 2000 at 01:45:51PM -0400, rpjday wrote: > | dd if=/dev/hda | gzip > test.gz > | > | rday > | > | p.s. dd if=/dev/hda bs=96k | gzip > test.gz for efficiency > > Though of course that still wastes time chucking data through the pipe

Re: Very Basic shell logic question

2000-10-11 Thread Cameron Simpson
On Tue, Oct 10, 2000 at 01:45:51PM -0400, rpjday wrote: | dd if=/dev/hda | gzip > test.gz | | rday | | p.s. dd if=/dev/hda bs=96k | gzip > test.gz for efficiency Though of course that still wastes time chucking data through the pipe between two programs. This: gzip test.gz should wi

Re: Very Basic shell logic question

2000-10-10 Thread rpjday
On Tue, 10 Oct 2000, George Lenzer wrote: > I am trying to make a backup of an entire drive > to a compressed file. Here is what I have > tried, but it fails: > > dd if=/dev/hda | gzip test.gz dd if=/dev/hda | gzip > test.gz rday p.s. dd if=/dev/hda bs=96k | gzip > test.gz for efficiency

RE: Very Basic shell logic question

2000-10-10 Thread Mike McNally
try dd if=/dev/hda | gzip > test.gz Now -- and I say this not to scold, but to save you time in the future -- I got the info straight from the gzip man page. There are good examples in it. The man or info page(s) about the shell should have information on how redirection works. (Because i

Very Basic shell logic question

2000-10-10 Thread George Lenzer
I am trying to make a backup of an entire drive to a compressed file. Here is what I have tried, but it fails: dd if=/dev/hda | gzip test.gz Now, I know I am missing something here. Someone on this list gave me the exact way to do this a few years ago, but I lost the documentation. BTW... ar