- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron issue
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
тАО08-19-2010 01:33 AM
тАО08-19-2010 01:33 AM
Re: cron issue
If you want to do it for another user, you have to add the '-u
So:
$ crontab -l -u dummyuser >oldjobs
$ cat oldjobs newjobs | crontab -u dummyuser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2010 02:46 AM
тАО08-19-2010 02:46 AM
Re: cron issue
# cd /var/spool/cron/crontabs
Save old cron.
# crontab -l > crontab.old
Modify crontab file:
# crontab -e
List crontab file:
# crontab -l
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2010 08:01 AM
тАО08-20-2010 08:01 AM
Re: cron issue
There is no need to go there unless you want to back up these files.
Also don't edit these files directly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2010 04:55 PM
тАО08-22-2010 04:55 PM
Re: cron issue
As a new UNIX user/administrator you need to quickly learn that "man" is your best friend...
man crontab
... will give you the the answer you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2010 10:21 AM
тАО08-24-2010 10:21 AM
Re: cron issue
hi newunix,
If you are creating cron like vi xyz.cron, after adding all jobs to xyz.cron, you have to use below command to activate above crontab.
crontab xyz.cron
If you are adding more cron jobs to xyz.cron edit in vi and then again use crontab xyz.cron to activate.
Thx,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2010 07:25 PM
тАО08-24-2010 07:25 PM
Re: cron issue
!its better to use crontab -e instead of vi
Regards
Mc
- « Previous
-
- 1
- 2
- Next »