File: cron.bug-script

package info (click to toggle)
cron 3.0pl1-162
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,204 kB
  • sloc: ansic: 47,007; perl: 733; makefile: 429; sh: 425; python: 36
file content (28 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# reportbug output generator script for cron package

# reportbug expects output on fd 3
exec 1>&3 2>&3

echo "--- EDITOR:"
if [ -n "$EDITOR" ] ; then
       	echo "not set"
else
       	echo $EDITOR
fi
echo

echo "--- /usr/bin/editor:"
readlink -f /usr/bin/editor
echo

echo "--- /usr/bin/crontab:"
ls -l /usr/bin/crontab
echo

for dir in /var/spool/cron /var/spool/cron/crontabs /etc/cron.d /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly ; do
	echo "--- $dir:"
	ls -ld $dir
	echo
done