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
02-16-2006 03:03 AM
02-16-2006 03:03 AM
cronjob
then i put it in the cronjob as
1 * * * * /test/cron expecting it to work and show me the command find /test/cron -name cron -print every minute. Can u kindly tell me what i should do to make it work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 03:06 AM
02-16-2006 03:06 AM
Re: cronjob
You need to redirect stdout and sterr to files,something like
1 * * * * /test/cron 2>/tmp/log2 1>/tmp/log1
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 03:10 AM
02-16-2006 03:10 AM
Re: cronjob
In crontasks, any STDOUT or STDERR that is not redirected to a file will be mailed to the user that initiated the task. Check you mail.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 09:15 PM
02-16-2006 09:15 PM
Re: cronjob
login as the user where the cron script runs and type elm.
you will see all your outputs.
To avoid this you shoudl redirect teh cron command to a file:
1>/tmp/.log 2>&1
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 09:34 PM
02-16-2006 09:34 PM
Re: cronjob
1 * * * * find /test -name cron -print 1>/test/out.log 2>/test/err.log
and save cron job.
See /test/out.log file for output. If you want to update in the same file then,
1 * * * * find /test -name cron -print 1>>/test/out.log 2>/test/err.log
--
Muthu