<div>Hiya, thanks a lot for that Will (sorry spelt name wrong before!), think you're reply has almost got there...</div>
<div> </div>
<div>If I dos2unix the file it works, if I use vi/m (what I normally use) or nano etc, it doesn't work (but will if I then dos2unix it again)?</div>
<div> </div>
<div>SELinux I think is on permissive/targeted (I'm not too familiar with selinux as someone else set it up, but my understanding is that it should allow all, but log/audit it?).</div>
<div> </div>
<div>Looks like thats it, but not sure still why its not saving it correctly?</div>
<div> </div>
<div>Thanks, Ian</div>
<div> </div>
<div>(lsattr shows ------------- logadmin btw)<br><br> </div>
<div><span class="gmail_quote">On 9/25/06, <b class="gmail_sendername">Will McDonald</b> <<a href="mailto:wmcdonald@gmail.com">wmcdonald@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 25/09/06, Ian mu <<a href="mailto:mu.llamas@gmail.com">mu.llamas@gmail.com</a>> wrote:<br>> Hiya, thanks for that Wil, gives me some ideas. I notice the Bad file
<br>> descriptor error in there, I've pasted the part there it starts to run it<br>> below (I'm only using touch as a basic test as other cron entries don't<br>> work, touch outside of cron works fine). I'm a bit clueless looking at the
<br>> rest really though, is it definitely the bad file descriptor thats causing<br>> it, and any ideas why as its fine outside of cron?<br>><br>> read(6, "03 11 * * * /bin/touch /home/log"..., 4096) = 47
<br>> lseek(6, 47, SEEK_SET)                  = 47<br>> read(6, "", 4096)                       = 0<br>> read(6, "", 4096)                       = 0<br>> close(6)                                = 0
<br>> munmap(0x2a9556c000, 4096)              = 0<br>> close(6)                                = -1 EBADF (Bad<br>> file descriptor)<br><br>It looks to me like crond is opening your crontab file OK, it appears<br>
to have read the line then choked on something.<br><br>Which editor are you using to edit the crontab? I wonder if it's<br>something weird in the CR/LF sequences? You could try running dos2unix<br>on /var/spool/cron/logadmin ? Could it possibly be SELinux? Have you
<br>got SELinux enabled?<br><br>I'd also check the extended attributes of all files and directories<br>invoved in case something's out there (use "lsattr").<br><br>Will.<br>_______________________________________________
<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>