Cmd mv: Owner/group copy

2013-02-08 Thread Filip Kocina
Hi all, I'd like to ask you why the owner and the group of a file is retained while moving a file via mv. I was surprised when I made a file as root in home directory of another user and moved this file as this another user into /tmp. I mean the preservation is rather logical, but if this another

Please help me to resolve a tail related server fault

2013-02-08 Thread Liu Haifeng
Hi I have a log transport agent written in java which creates a sub process that executing tail -F a.log to tail log file,and the output is piped to the main java process,thus I can read and transport log content using java. This worked fine in the past 30 days,but now it seams the java

Re: Please help me to resolve a tail related server fault

2013-02-08 Thread Liu Haifeng
We are developing our own tailer now, but I want to find out what happened with gnu tail or oracle java. On Feb 8, 2013, at 10:03 PM, Cryptographrix cryptograph...@gmail.com wrote: I do not know what limitations STDIN has on it in java offhand, but it sounds like this is what you are trying

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Bernhard Voelker
On February 7, 2013 at 8:57 PM Pádraig Brady p...@draigbrady.com wrote: coreutils snapshot: http://pixelbeat.org/cu/coreutils-8.20.113-1f1f4.tar.xz Hi Padraig, * SLES-10.4 (x86_64): gcc (GCC) 4.1.2 20070115 (SUSE Linux) FAIL: tests/misc/numfmt.pl 1 of 477 tests failed (61 tests

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Assaf Gordon
Hello Bernhard, Bernhard Voelker wrote, On 02/08/2013 09:53 AM: On February 7, 2013 at 8:57 PM Pádraig Brady p...@draigbrady.com wrote: coreutils snapshot: http://pixelbeat.org/cu/coreutils-8.20.113-1f1f4.tar.xz Hi Padraig, * SLES-10.4 (x86_64): gcc (GCC) 4.1.2 20070115 (SUSE

Re: Please help me to resolve a tail related server fault

2013-02-08 Thread Liu Haifeng
I don't think tail would die at that point. I have tested this: tail -F a.log #after eof rm a.log #tail then gives an error,but still waiting #after a while I run echo hello a.log #here tail functions continuously 在 2013-2-8,下午11:01,Cryptographrix cryptograph...@gmail.com 写道: If it's

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Bernhard Voelker
On February 8, 2013 at 4:13 PM Assaf Gordon assafgor...@gmail.com wrote: Regarding the 'numfmt' failures - these are locale-related problems (in both cases). Perhaps I wrote the tests incorrectly. May I ask you to try the followings on those systems, and send the output (or compare with this

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Pádraig Brady
On 02/08/2013 03:47 PM, Bernhard Voelker wrote: On February 8, 2013 at 4:13 PM Assaf Gordon assafgor...@gmail.com wrote: Regarding the 'numfmt' failures - these are locale-related problems (in both cases). Perhaps I wrote the tests incorrectly. May I ask you to try the followings on those

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Bernhard Voelker
On February 8, 2013 at 4:56 PM Pádraig Brady p...@draigbrady.com wrote: OK so we can't assume the locale will behave as we want. Therefore we can gate the test on the output of the independent printf like: PASS: tests/misc/numfmt.pl ;-) Have a nice day, Berny

Re: Cmd mv: Owner/group copy

2013-02-08 Thread Cryptographrix
This is rational - if you have the ability to move it, you have the ability to chown it. If the chown were not an explicit next step, users and applications would need to track users, groups, and permissions for each file they moved. On Feb 8, 2013 8:43 AM, Filip Kocina fkoc...@redhat.com wrote:

Re: Please help me to resolve a tail related server fault

2013-02-08 Thread Cryptographrix
I do not know what limitations STDIN has on it in java offhand, but it sounds like this is what you are trying to do: http://www.informit.com/guides/content.aspx?g=javaseqNum=226 On Thu, Feb 7, 2013 at 11:52 PM, Liu Haifeng haifeng@gmail.com wrote: Hi I have a log transport agent

Re: Please help me to resolve a tail related server fault

2013-02-08 Thread Cryptographrix
If it's happening when some type of log rotation rotates the log out, there is a good possibility that tail catches the EOF when log rotation kicks the process that created the file and tail dies. I believe the retry feature of tail may not necessarily retry after what it sees as an EOF, and that

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Pádraig Brady
On 02/08/2013 02:53 PM, Bernhard Voelker wrote: On February 7, 2013 at 8:57 PM Pádraig Brady p...@draigbrady.com wrote: coreutils snapshot: http://pixelbeat.org/cu/coreutils-8.20.113-1f1f4.tar.xz Hi Padraig, * SLES-10.4 (x86_64): gcc (GCC) 4.1.2 20070115 (SUSE Linux) FAIL:

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Assaf Gordon
Thanks for the quick fix. Bernhard Voelker wrote, On 02/08/2013 11:02 AM: On February 8, 2013 at 4:56 PM Pádraig Brady p...@draigbrady.com wrote: OK so we can't assume the locale will behave as we want. Therefore we can gate the test on the output of the independent printf like: PASS:

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Bernhard Voelker
On February 8, 2013 at 5:30 PM Pádraig Brady p...@draigbrady.com wrote: On 02/08/2013 02:53 PM, Bernhard Voelker wrote: On February 7, 2013 at 8:57 PM Pádraig Brady p...@draigbrady.com wrote: * SLES-10.3 (i586): gcc (GCC) 4.1.2 20070115 (SUSE Linux) FAIL:

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Bernhard Voelker
On 02/08/2013 05:35 PM, Assaf Gordon wrote: Thanks for the quick fix. Bernhard Voelker wrote, On 02/08/2013 11:02 AM: On February 8, 2013 at 4:56 PM Pádraig Brady p...@draigbrady.com wrote: OK so we can't assume the locale will behave as we want. Therefore we can gate the test on the output

Re: Cmd mv: Owner/group copy

2013-02-08 Thread Bob Proulx
Filip Kocina wrote: I'd like to ask you why the owner and the group of a file is retained while moving a file via mv. Moving a file on the same filesystem does not copy the file. Moving a file from one directory to another on the same filesystem simply creates a new inode pointer in the new

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Pádraig Brady
On 02/08/2013 05:09 PM, Bernhard Voelker wrote: On February 8, 2013 at 5:30 PM Pádraig Brady p...@draigbrady.com wrote: On 02/08/2013 02:53 PM, Bernhard Voelker wrote: On February 7, 2013 at 8:57 PM Pádraig Brady p...@draigbrady.com wrote: * SLES-10.3 (i586): gcc (GCC) 4.1.2 20070115 (SUSE