Re: Another rfe: "cp" this time

2012-04-27 Thread Bruce Korb
On 04/27/12 14:27, Bruce Korb wrote: Link? no. Copy? yes. But it is a long way from being ready for prime time. And I think it belongs in "cp". :) Not only not ready for prime time, but I hadn't tested it because the my test file was using the pipe. "This will work better.", but it still isn't

Re: using tee with mkfifo

2012-04-27 Thread Andreas Schwab
Peng Yu writes: > Hi, > > The following code hangs there for ever. I don't understand what is > going on. Basically, I tee stdin to two named pipes and cat both > pipes. Could anybody let me know what I am wrong? Thanks! > > mkfifo a.suffix b.suffix > echo Hello World | tee a.suffix > b.suffix

Re: using tee with mkfifo

2012-04-27 Thread Peng Yu
On Fri, Apr 27, 2012 at 3:46 PM, Andreas Schwab wrote: > > > Peng Yu writes: > >> Hi, >> >> The following code hangs there for ever. I don't understand what is >> going on. Basically, I tee stdin to two named pipes and cat both >> pipes. Could anybody let me know what I am wrong? Thanks! >> >> mk

Re: Another rfe: "cp" this time

2012-04-27 Thread Bruce Korb
On 04/27/12 12:57, Pádraig Brady wrote: Note you could test your multiple readers idea simply like: ( dd bs=32KiB skip= seek= count=1000 conv=notrunc& dd bs=32KiB skip=1000 seek=1000 count=1000 conv=notrunc& dd bs=32KiB skip=2000 seek=2000 count=1000 conv=notrunc )> /loc

Re: FYI, more id.c changes

2012-04-27 Thread Jim Meyering
Jim Meyering wrote: >> Just as well that I separated them. >> In doing so, I found an additional "argc - optind" to factor out. >> I haven't added a test for the second or third patches -- out of time, >> and they don't seem worth it. However, if someone else would like to, >> you're welcome. >> >

Re: FYI, more id.c changes

2012-04-27 Thread Jim Meyering
Jim Meyering wrote: > Jim Meyering wrote: >> While investigating today's bug, I noticed that a plain old "id -G" >> would call getcon unnecessarily. It's not going to print a context >> string, so it obviously doesn't need to call getcon. >> >> While addressing that, factoring and cleaning up, I

Re: FYI, more id.c changes

2012-04-27 Thread Jim Meyering
Jim Meyering wrote: > While investigating today's bug, I noticed that a plain old "id -G" > would call getcon unnecessarily. It's not going to print a context > string, so it obviously doesn't need to call getcon. > > While addressing that, factoring and cleaning up, I noticed this: > > Old be

Re: Another rfe: "cp" this time

2012-04-27 Thread Pádraig Brady
On 04/27/2012 06:47 PM, Pádraig Brady wrote: > On 04/27/2012 06:15 PM, Bruce Korb wrote: >> Thank you for the suggestions. I did finish my particular task with rsync, >> but I'd still like something that finishes in less than 10 hours. > > Just to be clear, you started with cp, went home, resumed

CIFS is no fun

2012-04-27 Thread Bruce Korb
As of the last writing, I hadn't actually started the rsync because I just knew it would work. "rsync --append" apparently doesn't seek to the point where the last one left off. I just took a peek at it and, despite being busy pushing data over the wire, there was no actual progress. The file s

Enhacement Request: ls --sort=class (group entries according to the indicators appended by -F/--classify)

2012-04-27 Thread user
From the man entry: ``` -F, --classify append indicator (one of */=>@|) to entries ``` Would be useful, for readability purposes, to be able sort entries according the indicators appended by -F/--classify. A WORD called class could be added to "--sort" for this purpose. In add

Re: Another rfe: "cp" this time

2012-04-27 Thread Bruce Korb
Hi, 2012/4/27 Pádraig Brady : > Just to be clear, you started with cp, went home, resumed with rsync. > So rsync is not faster here, as there is no remote rsync server. Exactly. rsync has a "resume" and that is faster than starting over. :-D > Note you could test your multiple readers idea simp

using tee with mkfifo

2012-04-27 Thread Peng Yu
Hi, The following code hangs there for ever. I don't understand what is going on. Basically, I tee stdin to two named pipes and cat both pipes. Could anybody let me know what I am wrong? Thanks! mkfifo a.suffix b.suffix echo Hello World | tee a.suffix > b.suffix & cat a.suffix b.suffix -- Regar

Re: Another rfe: "cp" this time

2012-04-27 Thread Pádraig Brady
On 04/27/2012 06:15 PM, Bruce Korb wrote: > Thank you for the suggestions. I did finish my particular task with rsync, > but I'd still like something that finishes in less than 10 hours. Just to be clear, you started with cp, went home, resumed with rsync. So rsync is not faster here, as there is

Re: Another rfe: "cp" this time

2012-04-27 Thread Andreas Schwab
Bruce Korb writes: > I can either add this to cp, or roll my own toy. What say you? Use rsync --partial --append. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Another rfe: "cp" this time

2012-04-27 Thread Bruce Korb
Oh, just to be clear: 2012/4/27 Pádraig Brady : > Your suggestion of parallelizing the reads on the local > host might help, especially when the processing of each > block takes time. I.E. it would be more beneficial for > gzip than for cp. You could get much the equivalent parallelization > for c

Re: Another rfe: "cp" this time

2012-04-27 Thread Bruce Korb
Thank you for the suggestions. I did finish my particular task with rsync, but I'd still like something that finishes in less than 10 hours. It is longer than my work day. Please note: my only access is with a CIFS mount. *NO* shell access. Thus, anything depending upon remote commands doesn'

bug#7320: id and groups may lie

2012-04-27 Thread Jim Meyering
Jim Meyering wrote: > Marc W. Mengel wrote: >> The other test case is to make a copy of "id" and make it >> setuid to some user (i.e. mysql) and run it; it will show >> itself as having mysql's primary group, even though it doesn't. > > Oh! Yes, that will work. Thanks. > With that, I'll add a te

FYI, more id.c changes

2012-04-27 Thread Jim Meyering
While investigating today's bug, I noticed that a plain old "id -G" would call getcon unnecessarily. It's not going to print a context string, so it obviously doesn't need to call getcon. While addressing that, factoring and cleaning up, I noticed this: Old behavior: nonsensical diagnostic,

Re: Another rfe: "cp" this time

2012-04-27 Thread Pádraig Brady
On 04/27/2012 03:32 PM, Bruce Korb wrote: > Our corporate infrastructure only allows CIFS shares. No FTP access. > No scp access. Nope. Gotta be CIFS. One of these is on the other > side of the pond. The pipe is fairly fat, but very, very long. > Sometimes, like yesterday, after 8 hours of cop

Another rfe: "cp" this time

2012-04-27 Thread Bruce Korb
Our corporate infrastructure only allows CIFS shares. No FTP access. No scp access. Nope. Gotta be CIFS. One of these is on the other side of the pond. The pipe is fairly fat, but very, very long. Sometimes, like yesterday, after 8 hours of copying, I was only 80% complete and I had to shut d

Re: mkdir -pm bug?

2012-04-27 Thread Pádraig Brady
On 04/27/2012 12:52 PM, Henrikki Almusa wrote: > Hi, > > I have a situation where I want to create with a script a directory path > based on input. The mkdir -p allows this nicely. However since I want to > enforce certain permissions on it I thought that I can use mkdir -pm to > create this. H

mkdir -pm bug?

2012-04-27 Thread Henrikki Almusa
Hi, I have a situation where I want to create with a script a directory path based on input. The mkdir -p allows this nicely. However since I want to enforce certain permissions on it I thought that I can use mkdir -pm to create this. However it seems that when using both options, the parent

Group results according the indicators appended by -F/--classify (ls --sort=class)

2012-04-27 Thread aristidesfl
From the man entry: ``` -F, --classify append indicator (one of */=>@|) to entries ``` Would be useful for readability purposes to be able group entries according the indicators appended by -F/--classify. A WORD called class could be added to "--sort" for this purpose. In additi