- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to edit or list crontab
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2020 01:03 AM
10-02-2020 01:03 AM
Unable to edit or list crontab
Hi
I have a system running hp-ux 11.23, which I am not able to edit or list crontab, but previously this was possible.
cchost0[347]/var/adm/cron #/sbin/init.d/cron stop
cron stopped
cchost0[349]/var/adm/cron #/sbin/init.d/cron start
cron started
cchost0[350]/var/adm/cron #crontab -l
cchost0[351]/var/adm/cron #crontab -e
cchost0[352]/var/adm/cron #ps -ef | grep cron
root 4287 4233 0 09:51:04 pts/4 0:00 grep cron
root 4282 1 0 09:50:35 ? 0:00 /usr/sbin/cron
I have check the logs,:
tail OLDlog
> bscsprod 4192 c Fri Oct 2 09:30:00 SAST 2020
> CMD: /sbin/rc3.d/VPN_ping > /dev/nulll 2 >&1
> root 4193 c Fri Oct 2 09:30:00 SAST 2020
< pprov 4190 c Fri Oct 2 09:30:00 SAST 2020 rc=1
< bscsprod 4192 c Fri Oct 2 09:30:00 SAST 2020 rc=1
< root 4189 c Fri Oct 2 09:30:00 SAST 2020
< root 4193 c Fri Oct 2 09:30:28 SAST 2020 rc=2
> CMD: /sbin/rc3.d/VPN_ping > /dev/nulll 2 >&1
> root 4261 c Fri Oct 2 09:45:00 SAST 2020
< root 4261 c Fri Oct 2 09:45:28 SAST 2020 rc=2
and:
tail log
! *** cron started *** pid = 4282 Fri Oct 2 09:50:35 SAST 2020
> CMD: /sbin/rc3.d/VPN_ping > /dev/nulll 2 >&1
> root 4308 c Fri Oct 2 10:00:00 SAST 2020
> CMD: /fs1/bscsprod/BSCS_iX/WORK/PPROV/EMM/msisdn.sh > /fs1/bscsprod/BSCS_iX/WORK/PPROV/EMM/cronlog
> pprov 4309 c Fri Oct 2 10:00:00 SAST 2020
> CMD: /fs1/bscsprod/BSCS_iX/WORK/backup/monitor_dbdump.sh > /fs1/bscsprod/BSCS_iX/WORK/backup/bdf.log 2>&1
> bscsprod 4311 c Fri Oct 2 10:00:00 SAST 2020
< pprov 4309 c Fri Oct 2 10:00:00 SAST 2020 rc=1
< bscsprod 4311 c Fri Oct 2 10:00:00 SAST 2020 rc=1
other files:
tail cron.allow
root
adm
uucp
pprov
ccuser
#more queuedefs
a.4j1n
b.2j2n90w
queuedefs: END
Please what possible could be wrong....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2020 07:02 PM
10-03-2020 07:02 PM
Re: Unable to edit or list crontab
What does this command show?
# ls -l /var/spool/cron/crontabs
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 01:11 AM
10-05-2020 01:11 AM
Re: Unable to edit or list crontab
Hi
Thanks for the reply, the output of that command is:
ls -l /var/spool/cron/crontabs
total 64
-r-------- 1 root 107 228 Sep 9 2009 bscsprod
-r-------- 1 root oinstall 732 Nov 1 2009 ora10g
-r-------- 1 root users 242 Jan 15 2008 pprov
-r-------- 1 root sys 767 Nov 4 2010 root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 12:35 PM
10-05-2020 12:35 PM
Re: Unable to edit or list crontab
What does your 'crontab' command look like?
This is from an 11.11 system, but the permissions and ownership should be similar though the file size / date will differ.
root@prod1:/
# which crontab
/usr/bin/crontab
root@prod1:/
# ll /usr/bin/crontab
-r-sr-xr-x 1 root bin 28672 Aug 24 2006 /usr/bin/crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 04:27 PM
10-05-2020 04:27 PM
Re: Unable to edit or list crontab
Try restarting cron:
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Then try the cron -l command again.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 11:33 PM
10-05-2020 11:33 PM
Re: Unable to edit or list crontab
The output of the commands:
#which crontab
/usr/bin/crontab
#ll /usr/bin/crontab
-r-sr-xr-x 1 root bin 0 Dec 22 2009 /usr/bin/crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 11:35 PM
10-05-2020 11:35 PM
Re: Unable to edit or list crontab
I did try stop and start the cron job before, but nothing happens:
/sbin/init.d/cron stop
cron stopped
cchost0[133]/ #/sbin/init.d/cron start
cron started
cchost0[134]/ #crontab -l
cchost0[135]/ #date
Tue Oct 6 08:35:18 SAST 2020
cchost0[136]/ #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 06:33 AM
10-06-2020 06:33 AM
Re: Unable to edit or list crontab
Well, here's your problem.
#ll /usr/bin/crontab -r-sr-xr-x 1 root bin 0 Dec 22 2009 /usr/bin/crontab
Somehow your crontab executable has been wiped out. It is zero bytes. That will definitely not work.
You need to restore it from a backup.