I'm using PBCC 2.0, older version but it works for me.
Question is, I'm going to do a shell out based on the input.
We're using the Oracle EM agent and I want to run a blackout on a specific database.
So I formulate the shell command and all works.
What if the EM agent command hangs?
What kind of ERR can I look for?
I feel kind of limited here....I cannot do this asynchronously, I need to wait for return.
Here's an example:
------------------
Scott Turchin
MCSE, MCP+I
Computer Creations Software
----------------------
Sometimes you give the world the best you got, and you get kicked in the teeth.
Give the world the best you got anyway.
- Ted Nugent (God, Guns, and Rock n' Roll)
Question is, I'm going to do a shell out based on the input.
We're using the Oracle EM agent and I want to run a blackout on a specific database.
So I formulate the shell command and all works.
What if the EM agent command hangs?
What kind of ERR can I look for?
I feel kind of limited here....I cannot do this asynchronously, I need to wait for return.
Here's an example:
Code:
If IsTrue Len(lCommand) Then cmd = LCase$(Parse$(lCommand," ",1)) ORASID = Parse$(lCommand," ",2) CompName = Parse$(lCommand," ",-1) Else GoTo helpme End If wDebug = %TRUE 'START COMMAND ShellCmd = "Emctl " & cmd & " blackout " & ORASID & "_INSTALL_DB " & ORASID & "." & CompName & ".domain.mil [img]http://www.powerbasic.com/support/forums/redface.gif[/img]racle_database" If IsTrue wDebug Then StdOut ShellCmd Else Shell ShellCmd Sleep 200 End If
Scott Turchin
MCSE, MCP+I
Computer Creations Software
----------------------
Sometimes you give the world the best you got, and you get kicked in the teeth.
Give the world the best you got anyway.
- Ted Nugent (God, Guns, and Rock n' Roll)
Comment