- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab newbie problem
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
Forums
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
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
09-15-2004 05:32 AM
09-15-2004 05:32 AM
crontab newbie problem
Connected as root I created the username file (user13 file) in /var/spool/cron/crontabs and did the "chown user13 user13" and connected as user13 I did the "chmod u=rw user13", with the information of the task to perform:
5,10,15,20,25,30,35,40,45,50,55,00 * * * * /home/user13/test.sh
But the script test.sh does not execute every 5 minuts.
What did I do wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 05:37 AM
09-15-2004 05:37 AM
Re: crontab newbie problem
Proper way would be to log in as user and create the crontab file.
1) remove the user13 file from /var/spool/cron/crontabs directory
2) # su - user13
user13> crontab -e
5,10,15,20,25,30,35,40,45,50,55,00 * * * * /home/user13/test.sh
user13>
Now the script should get executed.
-- Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 05:38 AM
09-15-2004 05:38 AM
Re: crontab newbie problem
As a user12, what does
crontab -l says??
What is there in /var/adm/cron/log??
Is the execute perms set on test.sh??
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 05:39 AM
09-15-2004 05:39 AM
Re: crontab newbie problem
Login as that user.
create a file with the cron job.
do "crontab file_name" as the user for whom this cron job needs to be added.
Creating a file under crontabs by root does not help.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 06:00 AM
09-15-2004 06:00 AM
Re: crontab newbie problem
As root user, what is the syntax to give write privilege to this directory to user13?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 06:06 AM
09-15-2004 06:06 AM
Re: crontab newbie problem
Give it a try. It will work.
# su - user13
$ crontab -e
Add your info as above and save it. If you then want to check it do
$ crontab -l
And the use should be added to /var/adm/cron/cron.allow to allow them access to use cron.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 06:07 AM
09-15-2004 06:07 AM
Re: crontab newbie problem
Do not change the permissions ! :-).
/usr/bin/crontab command can be used by any user (that are allowed to have a crontab) to create/delete/modify their crontab files.
/usr/bin/crontab is a SETUID binary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 06:21 AM
09-15-2004 06:21 AM