- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Crontab not accepting changes
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
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
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
тАО12-12-2008 09:43 AM
тАО12-12-2008 09:43 AM
Re: Crontab not accepting changes
Just After the file was opened:
File: "/tmp/crontab.6550"
Size: 2463 Blocks: 8 IO Block: -4611708214818369536 Regular File
Device: 803h/2051d Inode: 24 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: Fri Dec 12 10:48:18 2008
Modify: Fri Dec 12 10:48:18 2008
Change: Fri Dec 12 10:48:18 2008
After edit and :w to tmp file:
File: "/tmp/crontab.6550"
Size: 2478 Blocks: 8 IO Block: -4611721408957902848 Regular File
Device: 803h/2051d Inode: 24 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: Fri Dec 12 10:48:18 2008
Modify: Fri Dec 12 10:48:43 2008
Change: Fri Dec 12 10:48:43 2008
The problem I am having with the VIM editor.
Vim is creating a new tmp file with every write or save
Which causes the access, modify, and change times to be the same
File: "/tmp/crontab.18352"
Size: 3079 Blocks: 8 IO Block: -4611692890375057408 Regular File
Device: 805h/2053d Inode: 7209236 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: Fri Dec 12 10:19:28 2008
Modify: Fri Dec 12 10:19:28 2008
Change: Fri Dec 12 10:19:28 2008
After the w: on the tmp file:
File: "/tmp/crontab.18352"
Size: 3094 Blocks: 8 IO Block: -4611692890375057408 Regular File
Device: 805h/2053d Inode: 7209239 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: Fri Dec 12 10:19:56 2008
Modify: Fri Dec 12 10:19:56 2008
Change: Fri Dec 12 10:19:56 2008
If anyone has or knows of a way to correct this please advise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2008 11:41 PM
тАО12-12-2008 11:41 PM
Re: Crontab not accepting changes
Why do you think this has anything to do with crontab?
>Vim is creating a new tmp file with every write or save, which causes the access, modify, and change times to be the same
What's wrong with that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2008 07:08 AM
тАО12-15-2008 07:08 AM
Re: Crontab not accepting changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 04:46 AM
тАО12-16-2008 04:46 AM
Re: Crontab not accepting changes
This doesn't make sense. It should compare the modification time with the previous modification time, when it wrote it. But I suppose it doesn't like the fact that the inode has changed?
>This is shown in my previous posting of the stat that I ran on a working server compared to the non working.
That's a compelling argument.
>What I am looking for is a way to get vim to not create a new temp file every time a w or wq is initiated.
I'm not sure why it would do that? In the meantime, could you do the following:
:w
:touch %
:q
That way your modification time should be different from the inode change time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 06:11 AM
тАО12-16-2008 06:11 AM
Re: Crontab not accepting changes
Thanks for all your help guys and the link below is where I found the answer to the problem.
http://bugs.gentoo.org/32938
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2008 06:07 AM
тАО12-22-2008 06:07 AM
Re: Crontab not accepting changes
- « Previous
-
- 1
- 2
- Next »