HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- two cron jobs in my crontab...
Operating System - HP-UX
1833780
Members
2386
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-08-2003 09:43 AM
08-08-2003 09:43 AM
In /var/spool/cron/crontabs I have two files listed there. They are the same and I want to remove one of them. The file is called cronfile and how do I remove this cleanly?
Do I use this command
crontab -r cronfile?
Thanks.
Do I use this command
crontab -r cronfile?
Thanks.
carpe diem
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 09:46 AM
08-08-2003 09:46 AM
Solution
Do you have a user called 'cronfile'? If not, you can just 'rm cronfile' to remove it.
The files that reside in /var/spool/cron/crontabs, the actual users' crontab files themselves, are named according to the user to which they belong. root's crontab is named root in that directory. A file named 'cronfile' sounds like a backup that someone made at some point.
The files that reside in /var/spool/cron/crontabs, the actual users' crontab files themselves, are named according to the user to which they belong. root's crontab is named root in that directory. A file named 'cronfile' sounds like a backup that someone made at some point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 10:07 AM
08-08-2003 10:07 AM
Re: two cron jobs in my crontab...
We do not have a user name cronfile. I may have done this inadvertently because I may have been in the /var/spool/cron/crontab directory when I did this
crontab -l >cronfile
vi cronfile
crontab cronfile
This would probably create the cronfile because I was in that directory.
I did not realize I could remove it with rm cronfile.
I think crontab -r removes the crontab file for the user. It makes sense that rm cronfile is used in this case.
Thanks.
crontab -l >cronfile
vi cronfile
crontab cronfile
This would probably create the cronfile because I was in that directory.
I did not realize I could remove it with rm cronfile.
I think crontab -r removes the crontab file for the user. It makes sense that rm cronfile is used in this case.
Thanks.
carpe diem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 10:08 AM
08-08-2003 10:08 AM
Re: two cron jobs in my crontab...
The files in /var/spool/cron/crontabs get created when each user in your system creates their own crontabs. If root has a crontab setup, you should have a file name called "root" their and like that for each user. Check if cronfile user exists or you can remove it.
Also, first instead of removing it (rm) I will move it some other place, just for safety. You can even check the content of the file with cat command and confirm what process it initiates.
Also, first instead of removing it (rm) I will move it some other place, just for safety. You can even check the content of the file with cat command and confirm what process it initiates.
Life is a promise, fulfill it!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP