- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Cronjob's file
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
тАО05-02-2007 06:11 AM
тАО05-02-2007 06:11 AM
Cron jobs store crontab's config entry
temporarily in a file /tmp/xxxxx and do not store the cron scheduled jobs
in a regular file system.
I have seen some system where cron jobs entries are stored in a text files.
Eg. /opt/somedir/somefile and then "/opt/somedir/somefile" file which contains the cronjobs to be scheduled are invoked by executing the command "crontab /opt/somedir/somefile"
Can someone suggest what should be best and safest practice ?
Thanks,
Shiv
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:16 AM
тАО05-02-2007 06:16 AM
Re: Cronjob's file
look more about crontab at. :
http://www.informatik.uni-frankfurt.de/doc/man/hpux/crontab.1.html
Hope this helps,
Marc0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:16 AM
тАО05-02-2007 06:16 AM
Re: Cronjob's file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:17 AM
тАО05-02-2007 06:17 AM
SolutionI'm not sure what you mean by "Cron jobs store crontab's config entry temporarily in a file /tmp/xxxxx and do not store the cron scheduled jobs in a regular file system." Perhaps you are talking about while you are editing a crontab file?
For information on cron, crontab, and at do:
# man cron
# man crontab
# man at
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:19 AM
тАО05-02-2007 06:19 AM
Re: Cronjob's file
crontab -l > /var/tmp/mycrontab
vi /var/tmp/mycrontab and make any changes necessary
crontab < /var/tmp/mrcrontab # to read in the updated crontab file and signal the cron daemon that a change has occurred.
WARNING: DON'T DO THIS:
crontab
The command is waiting for input and when you hiyt Ctrl-C or Ctrl-D you just created an empty crontab and lost your original.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:32 AM
тАО05-02-2007 06:32 AM
Re: Cronjob's file
Why it does so instead of reading and editing from /var/spool/cron/crontabs ??
Best Regards,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:40 AM
тАО05-02-2007 06:40 AM
Re: Cronjob's file
Those look like at job entries for Linux to me.
HP-UX stores cron files in /var/spool/cron
The name of the file is the user name. It looks just like what you'd get by invoking the command
crontab -e
Any other way of storing jobs is not cron and results from either system alteration or some third party software that is not cron.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:56 AM
тАО05-02-2007 06:56 AM
Re: Cronjob's file
> I meant while editing a crontab file it stores in /tmp/xxxxx. Why it does so instead of reading and editing from /var/spool/cron/crontabs ??
If you do 'crontab -e' the a temporary file is created automatically for the purposes of the edit session. The name of this tempoary file is generated by the system by 'mktemp()' and represents a unique string ending in the process id of the 'crontab'.
Regards!
...JRF...
- Tags:
- mktemp