- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab scheduling
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
тАО03-04-2008 04:56 AM
тАО03-04-2008 04:56 AM
crontab scheduling
I tried with crontab -e to edit. It just opens a new line below the command prompt to add the new job. I don know how to save the added one. Also when i enter one job and press enter i get a "?" in next line and the cursor goes to 3rd line. plz let me know how to add a more than one job and save it.
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 05:04 AM
тАО03-04-2008 05:04 AM
Re: crontab scheduling
If you familiar with vi then edit crontab using command crontab -e
then press "i" then place crontab schedule.If you want to enter multiple jobs simple enter after first job and place another line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 05:06 AM
тАО03-04-2008 05:06 AM
Re: crontab scheduling
It also looks like your TERM variable may be wrong and vi starts up in line mode instead of screen mode.
type
echo $EDITOR
echo $TERM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 05:13 AM
тАО03-04-2008 05:13 AM
Re: crontab scheduling
Your .kshrc file will determine such things as how your editor will work.
Take a look at the env for your your shell environment. I imagine some of the basics are missing.
Don't change the root shell in /etc/passwd that can cause crazy things to happen.
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
тАО03-04-2008 05:41 AM
тАО03-04-2008 05:41 AM
Re: crontab scheduling
si mply type crontab and image to have a vi file to save at the end.
To simplify the work I usually use the following crontab template file to start new crontab:
###########################################################
#
###########################################################
###########################################################
# BACKUP ON ....... ..:.. AM ... - ..: PM server time
###########################################################
# ---------------------------------------------------------
# Daily
# ---------------------------------------------------------
# minute hour monthday month weekday (0=Sunday) command
# 0-59 0-23 1-31 1-12 0-6
03 00 * * * crontab -l > file_cron
# ---------------------------------------------------------
# Weekly
# ---------------------------------------------------------
# minute hour monthday month weekday (0=Sunday) command
# 0-59 0-23 1-31 1-12 0-6
# ---------------------------------------------------------
# Montly
# ---------------------------------------------------------
# minute hour monthday month weekday (0=Sunday) command
# 0-59 0-23 1-31 1-12 0-6
# ---------------------------------------------------------
# OBSOLETE
# ---------------------------------------------------------
# minute hour monthday month weekday (0=Sunday) command
# ---------------------------------------------------------
# One shot
# ---------------------------------------------------------
# minute hour monthday month weekday (0=Sunday) command
# 0-59 0-23 1-31 1-12 0-6
#eof
This will include teh save of teh content of teh crontab itself.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 11:14 PM
тАО03-04-2008 11:14 PM
Re: crontab scheduling
$ crontab -l > cronfile
# edit it
$ crontab cronfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2008 11:38 PM
тАО03-10-2008 11:38 PM
Re: crontab scheduling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2008 01:37 PM
тАО03-12-2008 01:37 PM
Re: crontab scheduling
You'll need to reopen, make sure you assign points, then close.