[PLUG] Determining Why Perl Script Fails

Fred James fredjame at fredjame.cnc.net
Wed Aug 6 19:59:11 UTC 2014


Rich Shepard wrote:
> On Wed, 6 Aug 2014, Dale Snell wrote:
>
>> ENOTTY is an error; one could translate it as "Error: No Terminal". At a
>> guess, logwatch tried to open a device or file as a target to recieve its
>> standard output, and failed. Why, I do not know. It's going to take some
>> more troubleshooting, I'm afraid.
> Dale,
>
>     I agree that there is no apparent simple answer. Unless the ENOTTY error
> relates to mailing the output rather than displaying it, that error is
> likely not significant. Examples:
>
> ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS,
> 0xbfac8de8) = -1 ENOTTY (Inappropriate ioctl for device)
> stat64("/var/cache/logwatch/logwatch.CSbhPkjD/none", 0x9ef6180) = -1 ENOENT
> (No such file or directory)
> stat64("/etc/logwatch/scripts/services/zz-zfs", 0x9ef6180) = -1 ENOENT (No
> such file or directory)
> ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS,
> 0xbfac8de8) = -1 ENOTTY (Inappropriate ioctl for device)
>
> Thanks,
>
> Rich
>
I am not a perl programer, so I may be off base ... shell scripts have a 
run option (-x) which then outputs everything the program does ... a 
good way to step through the logic to see what is really happening.  
Does perl have anything like that?
Regards
Fred James




More information about the PLUG mailing list