Sponsored Content
Top Forums Shell Programming and Scripting Exit status always zero in KSH from Oracle Scheduler Post 302428290 by hermanmol on Thursday 10th of June 2010 06:46:55 AM
Old 06-10-2010
Hello dazdseg,

That does not work either. I even tried setting a "trap ErrorHandler ERR" and even that error-trap does not fire after a "cat nonexistingfile". This is so weird...

---------- Post updated 2010-06-10 at 12:46 PM ---------- Previous update was 2010-06-09 at 05:19 PM ----------

It's not solved but the work around has been found in using an Oracle Scheduler Agent.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Clean Exit from KSH Status Loop

I have a ksh loop that monitors front panel key postitions. I need a keystroke or something to break out of the loop without exiting the script. Code is: #!/bin/ksh while true do POST=$(./keystat2 | nawk '{print $1}') if ]; then ... (2 Replies)
Discussion started by: ScottKe
2 Replies

2. Shell Programming and Scripting

$HOME Not Getting Set for Oracle Scheduler Script at Runtime

We are researching the possibility of using Oracle 10g Scheduler on Solaris 10 to launch scripts at our site, and the script that I am testing does not get $HOME (and other environment variables) set correctly. Here is the Korn shell script (show_info.ksh): #!/usr/bin/ksh id env | sort Here... (4 Replies)
Discussion started by: shew01
4 Replies

3. Shell Programming and Scripting

How to get the exit status

Hi all, I'm running a program which return 1 upon success. But when encounters problem shell return 's '1' . How to differentiate between them the shell return value and script return value. Ex. function fn return '1' if executed successfully and '0' if failed. But when if shell encounters... (1 Reply)
Discussion started by: yhacks
1 Replies

4. Shell Programming and Scripting

Exit status

I'm preparing for exam and one of exams is to write own test command... I wonder if in unix is a command which just returns exit code you specify.. I know I can easily write a function like this: exStatus() { return $1 } -> my question is rather theoretical thank you! (9 Replies)
Discussion started by: MartyIX
9 Replies

5. Shell Programming and Scripting

HELP WITH .ksh script converting the exit status

Hi Can someone help me please? In a standard UNIX .ksh script, if you have the exit status..say 5...what line do you have to enter into the script for this number to be automatically converted to its actual exit reason by looking up the exit status file...wherever that is? thanks angus (1 Reply)
Discussion started by: angusyoung
1 Replies

6. Shell Programming and Scripting

ksh script not working if triggered by scheduler

I have a script that works well if i execute manually using informix user. However, it does not execute properly if triggered using the scheduler (ESP). This is the partial part where it doesn't work. i added some tracing but i can't figure it out. #!/bin/ksh let db_is_up=0... (6 Replies)
Discussion started by: tungaw2004
6 Replies

7. Shell Programming and Scripting

exit status from ksh script exec from java using runtime

how do i get the exit status from a ksh or perl script executed in a java program using Runtime? (1 Reply)
Discussion started by: twk
1 Replies

8. Shell Programming and Scripting

Exit Status

I have a shell script (#!/bin/sh) that interacts with Appworx and Banner Admin. In my script I want to check the exit status of awrun before continuing. awrun can run for 10 seconds or it can run for over a minute. So my question is, will it go through my if statement before awrun may even be... (2 Replies)
Discussion started by: smkremer
2 Replies

9. Shell Programming and Scripting

Exit status of the ksh Script

Hi Im trying to write a script that will archive some file using java program.Below is the part of the script that I use and my problem is that the script always return with status 0.Below is part of my script(end part) purge.ksh echo "No of files before tar :... (4 Replies)
Discussion started by: saachinsiva
4 Replies

10. Shell Programming and Scripting

Want to get the exit status

Hi All, I am trying to create a zip file with all the txt files(these are in large number) in the current directory. I am able to do this operation sucessfully. After this i want to get the status of the tar command executed and do accordingly. When i am trying with the below code, the status... (3 Replies)
Discussion started by: paddu
3 Replies
mdlogd(1M)						  System Administration Commands						mdlogd(1M)

NAME
mdlogd - Solaris Volume Manager daemon SYNOPSIS
mdlogd DESCRIPTION
mdlogd implements a simple daemon that watches the system console looking for messages written by the Solaris Volume Manger. When a Solaris Volume Manager message is detected, mdlogd sends a generic SNMP trap. To enable traps, you must configure mdlogd into the SNMP framework. See . USAGE
mdlogd implements the following SNMP MIB: SOLARIS-VOLUME-MGR-MIB DEFINITIONS ::= BEGIN IMPORTS enterprises FROM RFC1155-SMI DisplayString FROM SNMPv2-TC; -- Sun Private MIB for Solaris Volume Manager sun OBJECT IDENTIFIER ::= { enterprises 42 } sunSVM OBJECT IDENTIFIER ::= { sun 104 } -- this is actually just the string from /dev/log that -- matches the md: regular expressions. -- This is an interim SNMP trap generator to provide -- information until a more complete version is available. -- this definition is a formalization of the old -- Solaris DiskSuite mdlogd trap mib. svmOldTrapString OBJECT-TYPE SYNTAX DisplayString (SIZE (0..255)) ACCESS read-only STATUS mandatory DESCRIPTION "This is the matched string that was obtained from /dev/log." ::= { sunSVM 1 } -- SVM Compatibility ( error trap ) svmNotice TrapTRAP-TYPE ENTERPRISE sunSVM VARIABLES { svmOldTrapString } DESCRIPTION "SVM error log trap for NOTICE. This matches 'NOTICE: md:'" ::= 1 svmWarningTrap TRAP-TYPE ENTERPRISE sunSVM VARIABLES { svmOldTrapString } DESCRIPTION "SVM error log trap for WARNING.. This matches 'WARNING: md:'" ::= 2 svmPanicTrap TRAP-TYPE ENTERPRISE sunSVM VARIABLES { svmOldTrapString } DESCRIPTION "SVM error log traps for PANIC.. This matches 'PANIC: md:'" ::= 3 END ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWlvma, SUNWlvmr | +-----------------------------+-----------------------------+ |Interface Stability |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
snmpdx(1M), attributes(5) SunOS 5.11 3 Jun 2004 mdlogd(1M)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy