We've got a cron job that creates the fedorahosted webpage. It produces (on occasion) this output: ========== START ============== ...... done. ...... done. ========== END OUTPUT =========
I've been poking at it for a bit and I just don't know what is causing that, so to the list I came. Anyone have any bright ideas? I've attached the script. My first inclination is that it's the make. But what in it is causing this to happen sometimes but not every time?
-Mike
On Tue, 27 Jan 2009, Mike McGrath wrote:
We've got a cron job that creates the fedorahosted webpage. It produces (on occasion) this output: ========== START ============== ...... done. ...... done. ========== END OUTPUT =========
I've been poking at it for a bit and I just don't know what is causing that, so to the list I came. Anyone have any bright ideas? I've attached the script. My first inclination is that it's the make. But what in it is causing this to happen sometimes but not every time?
Now with an actual attachment.
-Mike
Hi,
2009/1/27 Ricky Zhou ricky@fedoraproject.org:
On 2009-01-27 09:01:55 AM, Mike McGrath wrote:
...... done. ...... done.
This is just a random guess, but the text reminds me of:
receiving file list ... done
from rsync. I wonder what could cause this to be printed if it were rsync...
Yes, rsync always do that:
building file list ... done ... receiving file list ... done
On Jan 27, 2009, at 12:23 PM, Ricardo Ichizo n1ghtcr4wler@gmail.com wrote:
Hi,
2009/1/27 Ricky Zhou ricky@fedoraproject.org:
On 2009-01-27 09:01:55 AM, Mike McGrath wrote:
...... done. ...... done.
This is just a random guess, but the text reminds me of:
receiving file list ... done
from rsync. I wonder what could cause this to be printed if it were rsync...
Yes, rsync always do that:
building file list ... done ... receiving file list ... done
This makes me wonder if rsync is sending part of that message to stderr. I tried to reproduce it but have been unable to. It just sortof happens sometimes.
-Mike
On Tue, Jan 27, 2009 at 02:19:05PM -0500, mmcgrath@redhat.com wrote:
Yes, rsync always do that:
building file list ... done ... receiving file list ... done
This makes me wonder if rsync is sending part of that message to stderr. I tried to reproduce it but have been unable to. It just sortof happens sometimes.
I tried this and the only thing that appeared in /tmp/stderr was the remote host's SSH banner:
rsync --rsh=ssh -avHn . remotehost:foo/ 2> /tmp/stderr 1> /tmp/stdout
The "file list ... done" lines all appeared in /tmp/stdout.
If memory serves me, cron jobs do not get their own tty. tty based file handels can get flaky in cron jobs. I have run across situations in Solaris and AIX, where the the last filehandle accessed --redirected to /dev/null or not-- by a cron script is the one that gets the output. I am not sure why or what causes it.
I would force the STDOUT and STDERR of each command in the job to $0.$DATESTAMP log files until the error(s) reproduce. that way it can "hopefully" be determined where it is comming from and suppression or remediation can take place.
Mike
On Tue, Jan 27, 2009 at 1:19 PM, mmcgrath@redhat.com wrote:
On Jan 27, 2009, at 12:23 PM, Ricardo Ichizo n1ghtcr4wler@gmail.com wrote:
Hi,
2009/1/27 Ricky Zhou ricky@fedoraproject.org:
On 2009-01-27 09:01:55 AM, Mike McGrath wrote:
...... done.
...... done.
This is just a random guess, but the text reminds me of:
receiving file list ... done
from rsync. I wonder what could cause this to be printed if it were rsync...
Yes, rsync always do that:
building file list ... done ... receiving file list ... done
This makes me wonder if rsync is sending part of that message to stderr. I tried to reproduce it but have been unable to. It just sortof happens sometimes.
-Mike
Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
infrastructure@lists.fedoraproject.org