HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- is this crontab config possible?...
Operating System - Linux
1827399
Members
4811
Online
109965
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
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
02-23-2006 07:58 AM
02-23-2006 07:58 AM
is this crontab config possible?...
I have cron entries for various which runs under one account. I was thinking of braking this entries into modular component, each app has its own cron file. On the main crontab file, it reference this individual cronfile. Is this possible? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 08:13 AM
02-23-2006 08:13 AM
Re: is this crontab config possible?...
Chan,
You can run all cron jobs from root. All you have to do is, just a wrapper script,
which does
su - username and then kicks it off.
Else, as told you can have for each user wise,
Chan
You can run all cron jobs from root. All you have to do is, just a wrapper script,
which does
su - username and then kicks it off.
Else, as told you can have for each user wise,
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 05:20 PM
02-23-2006 05:20 PM
Re: is this crontab config possible?...
If you want to do some modular configuration, you can take the example of the /etc/crontab file, which uses run-parts to run scripts located in a specific directory.
Just change the line to run the scripts in the directories as the user you want, at the time you want, for example:
0 0 * * * username run-parts /etc/cron.d/username.d/
Just change the line to run the scripts in the directories as the user you want, at the time you want, for example:
0 0 * * * username run-parts /etc/cron.d/username.d/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 07:04 PM
02-23-2006 07:04 PM
Re: is this crontab config possible?...
The other thing you can do on modern Linux distributions (you're using RHEL from memory, so that's fine) is to use the '/etc/cron.d/' structure, and pop individual crontabs in there for your different appliations.
These appear similr to the '/etc/crontab' file (i.e. they have the user-to-run-as listed as the 6th argument).
These appear similr to the '/etc/crontab' file (i.e. they have the user-to-run-as listed as the 6th argument).
One long-haired git at your service...
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP