- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- what does it mean?
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
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
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
04-09-2006 11:01 PM
04-09-2006 11:01 PM
what does it mean?
> root 21954 c 월 4월 10 17:25:00 2006
< root 21954 c 월 4월 10 17:35:40 2006 rc=2
=============================================
it is generated cron log.
what does it mean rc=2?
does it say cmd a cannot execute or any other meaning?
shell cmd of a is
save -s online -b oracle -l full /arch_ispbs/
last_file=`find /arch_ispbs |ls -1|tail -1`
find /arch_ispbs ! -name $last_file |xargs rm
once save execute, find out latest generated file and remove all file except it.
it runs save first..~
but cannot remove all file except latest generated file.
what's the problem?
- Tags:
- cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 11:16 PM
04-09-2006 11:16 PM
Re: what does it mean?
I believe:
rc=2 means return code=2
This is a non-zero return code, meaning the job failed.
Any batch process you run gives(normally) a return code:
bdf
echo $?
That number is the return code and it should be zero.
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
04-09-2006 11:41 PM
04-09-2006 11:41 PM
Re: what does it mean?
legato save command?
try to add the path for the save command inside your script or set a PATH variable before you run your commands.
/opt/networker/bin/save -s .....
or
PATH=/usr/bin:/usr/sbin/:/opt/networker/bin
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 01:18 AM
04-10-2006 01:18 AM
Re: what does it mean?
On the other hand, getting those messages in email might be troublesome, especially if the job always produces some output.
You could leave out the "2>&1" part, so that the normal "notification" messages still go to /dev/null, but the error messages come to cron, which emails them to root account.
Or you could do like I often do:
set up the cron command line like "/a >/tmp/last_oracle_archive.log 2>&1". This avoids all the emails, but the complete message output of the latest run is available if you ever need to solve problems with the cron job.
Because there is only ">", not ">>", the next run's log will overwrite the previous log, so the file does not keep growing indefinitely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 12:48 PM
04-10-2006 12:48 PM
Re: what does it mean?
2.PATH is not the problem, it had correct name of PATH.
3.I'm going to edit cron log like /tmp/last_log . I think it could be helpful to trace job failed.
Thank you all of you