How do I know HOST command status?

Hi Guys,
I am running a shell script at middle tier (on application server) from web forms using HOST command.
My script may return TRUE or FALSE but executes successfully. Can I catch the True/False status of the script and see it in Forms?
Is there any way to find the HOST command status?
Thanks a lot
~Gouri Sankar

Hi,
can you write the value in a temporary file and read it from there ?
Frank

Similar Messages

  • How do I know which commands have been pushed to switch by PI CLI template

    We have PI version 1.3. I tried to deploy the built-in CLI template "vlan" just to create a vlan. I run the template and input vlan ID and name. The job is shown as successful in PI but the vlan is not created on the switch. In the transcript part of the job history, it only shows "configlet:response: config t". Please see the attachment for the screen shot. How do I know which commands have been pushed to the switch by the CLI template? How does PI push the CLI template to the switch? via snmp or telnet? I tried to run "debug tacacs authentication" and "debug tacacs accounting" on the switch because the switch is configured for command authentication and command accounting but I don't see any commands in the debug. It looks PI did not push any commands to the switch. Please help me to troubleshoot this.
    Thanks.

    The MPEG 2 Playback Component required by Streamclip is an optional purchase.
    http://store.apple.com/us/product/D2187Z/A
    There are other converters that can handle MPEG-2 files; try Handbrake.
    Regards.

  • How to run a HOST command from Report 2.5

    Hello everybody,
    I want to pass an unix command from a Report. I am running the report (Report 2.5) on an Unix server and I want to pass a unix host command inside the Before Report Trigger of the report. But Report2.5 is not recognising the HOST built-in. Is there is any way around?
    Thank in advance.
    Samujjwal Basu

    First off is that openssl command correct? Should it be this instead:
    openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
    Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
    After that.....
    runtime.exec creates a Process object. If you do this:
    Process openssl = runtime.exec("....")
    then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
    Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
    M

  • How can I know the uploading status of a Photobook?

    I have some problems uploading an order. I' d like to know the uploading status and the remaining time. How can i do that?
    Thanks

    Cesare,
    if you are concerned about your network connection, perhaps you may want to run the Network Utility (in Applications -> Utilities) for a while.
    The first tab (Info) will give you an overview on the transfer statistics (send errors, collision etc.) and the second tab (Netstat) will give you a comprehensive network statistic, when you press the "Netstat" button.
    Regards
    Léonie

  • How to call a host command/program within a PL/SQL Procedure OR Block

    Hello ,
    I want to call a host program (in my case it is unix shell program) from within a PL/SQL
    Procedure..Please let me know if you have a clue...Thanks a bunch...Ajeet

    Alternatively you could create a PL/SQL procedure that wraps a Java Runtime object.
    You can find an example of this in the Ask Tom column of Oracle Magazine. You can get there from OTN home page. Type "Java Runtime" into the Search Archive engine.
    HTH, APC

  • Application Properties - How do you know host/url

    If I have two Java Web Start applications with the same name is there a way to tell them apart?
    I am running the exact same application at different URLs. I don't see how to tell which is which. Isn't there someplace to look and see what the target URL is?
    Actually, I did find it by... (1) created a desktop icon (2) looked at the target of that icon (3) went and found that *.ind file in the javaws cahce (4) looked in that *.ind file to find the host/url.
    But I certainly can't suggest that method to end-users. How does an end-user see this info?
    Thanks... Roger

    It is the exact same application accessed via two different URLs (that ultimately resolve to the same host). It is not two different applications. Java Web Start on the client machine "thinks" they are different because the URL is different. Java Web Start saves the original URL and uses that to identify the "application". Seeing the JNLP will not help. The Java Web Start application manager should somehow identify (to the end-user) the application URL that it is using on the client side to identify (distinguish) the applications. Nothing on the server side can help.
    Alternatively, Java Web Start could not save and use this information at all (and always use the codebase in the JNLP file). But if Java Web Start did that, users going thru proxy systems that are opaque to the application developers would not work. That would be a weakness, so I think it is better the way they did it, however, they should show this information on the Java Web Start application manager display.
    [At least that is my perspective based on current conclusions].
    Thanks... Roger

  • How to run Unix Host commands from Database Triggers?

    Hi
    I need to create few directories in the Unix O/s under a specific directory (From a Database Trigger). And the directory names will be determined in the DB Trigger based on the data.
    I hope someone would have come across a requirement like this and will be able to help me out.
    Thanks.
    Mohan

    Hi Christopher
    How is it possible to use System calls from Triggers. Is it possible to use Runtime Libraries in DB Triggers.
    Thanks
    Mohan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Christopher Racicot ([email protected]):
    Try using the system calls available in
    the C runtime library by calling an external
    C procedure from the trigger. We will be
    enhancing the support in UTL_FILE to address
    issues like this in an upcoming release,
    but for now an external procedure should
    do the trick.<HR></BLOCKQUOTE>
    null

  • Example of host command

    Hi every one,
    I am trying to run an sql script in oracle forms.
    I know that it can be done using HOST command.
    But I dont know how to use it.
    Can any one give me one example how to use the host command in the oracle forms.
    Thanks,
    raju

    Something like this:
    HOST ( 'sqlplus scott/tiger@dbtest @C:\mysqlfiles\myscript.sql')

  • How to execute host command in trigger

    dear professional:
    i'm trying to create a trigger that when a certain value inserts into a table , it fires some UNIX command to do the job following
    here is what i tried ,create a trigger that gives host command , but when i tried insert , it fails to work
    i also tried dbms_pipe ,but seems same when using dynamic sql to do the job
    any idea of how to accomplish this task ?
    many thanks ~
    br/ricky
    SQL> CREATE OR REPLACE TRIGGER price_exec
    2 BEFORE INSERT ON omc.price_test
    FOR EACH ROW
    BEGIN
    IF :NEW.price = 4 THEN
    execute immediate 'host ll';
    END IF;
    END price_exec;
    / 3 4 5 6 7 8 9
    Trigger created.
    SQL> insert into price values ('test',4);
    insert into price values ('test',4)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> insert into price_test values ('test',4);
    insert into price_test values ('test',4)
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at "OMC.PRICE_EXEC", line 3
    ORA-04088: error during execution of trigger 'OMC.PRICE_EXEC'

    hi,
    my db is 9.2
    i'm aware of schedule you mentioned , but if it's up to the task , you don't know when a row with certain value is inserted
    simple way :
    when a row inserted into a table with value "catch me" you want to know who inserted this test value
    so you tried to create a trigger to catch program, machine, module ,and terminal info from v$session
    so you can figure out where it is coming from
    and i want to go a step further , by executing some os command to digging out more
    and i come up with this , when value 4 is inserted i exec a procedure host to execute command,
    the problem is it's not working as i exepcted , so spare me the lecture of reading docs and just tell me what to do
    i'd really appreciate it , thanks
    CREATE OR REPLACE TRIGGER price_exec
    BEFORE INSERT ON omc.price_test
    FOR EACH ROW
    BEGIN
    IF :NEW.price = 4 THEN
    execute immediate 'host('echo')';
    END IF;
    END;
    Warning: Trigger created with compilation errors.
    SQL> show errors
    Errors for TRIGGER PRICE_EXEC:
    LINE/COL ERROR
    3/30 PLS-00103: Encountered the symbol "ECHO" when expecting one of
    the following:
    . ( * @ % & = - + ; < / > at in is mod not rem return
    returning <an exponent (**)> <> or != or ~= >= <= <> and or
    like between into using || bulk
    The symbol ". was inserted before "ECHO" to continue.

  • How can I use variable name as a prameter value in HOST Command ???

    Hi All,
    How can it possible to use variable value in parameter in HOST command ??
    Following in my code:
    host('rwclient server=reptest report=c:\cust_print.rdf p_1= s_sam_cust_id userid=wh1/wh1@dwh desformat=pdf desty=file desname=c:/temp/'||v_sam_cust_id||'.pdf');
    Regards

    Hello,
    The Syntax of the builtin HOST is :
    SyntaxPROCEDURE HOST
    (system_command_string VARCHAR2);
    PROCEDURE HOST
    (system_command_string VARCHAR2,
    screen_action NUMBER);
    So , you can build the system_command_string as any VARCHAR2
    Example are provided in online help :
    http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builth_m/host.html?tp=true
    Regards

  • How to know SO Item status

    Hi All.
    I have an issue where i need to display the current status of the item from a sales order. As i came to know that the status can be Canceled, Open, InProcess, Pending or Complete. Please let me know the complete description of how these are differentiated and how to handle the logic...
    Thanks in advance
    Ashok

    Cross post locked.

  • How to run a script from Oracle Form (Beside using HOST command)

    I would like to run a script from Forms 6.0. I know that we can actually issue this command :
    host('plus80.exe' username/password@connect_string @c:\scriptname);
    BUT, is there any other alternative ?

    Sqlplus is a different program, so one way or the other you have to leave Forms to run sqlplus. What is you objection against HOST?
    You can also run sqlplus from the database, but again you need a stored java procedure to call sqlplus (sort of HOST command that runs in the database).
    Francois' solution works if your script just has a query to run, but if you have specific sqlplus commands (spool etc.) forms_ddl is probably not a solution.

  • Hi I wonder if I live in Bangkok and like to have my own website who should I use for hosting so many of them and how do I know which one is a good one thank you

    Hi I wonder if I live in Bangkok and like to have my own website whshah old I use as hosting website? so many of them and how do I know which one is a good one thank you

    It doesn't really matter which country your hosting service is located in so long as they offer 24/7 tech support in your chosen language. Telephone support is usually free of charge to you.
    Some info about the essential features to look for...
    http://www.iwebformusicians.com/iWeb/Website-Hosting.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • How to know the record status

    dear all
    i am new in adf. i have an entity object named Employee and an updatable view object named Employeevo.
    i created a simple .jspx page to display the employee in af:form.
    the page bindings contains CreateInsert operation. user can insert new record or update a record or delete it. mh question is:
    how can i detect the record status? in other eords how can i know whether the record is in insert mode or update mode. in oracle forms ,there is a system variable ":SYSTEM.RECORD_STATUS"that can return NEW-CHANGED-QUERY.what is the equilivant for this in ADF.
    thanks in advance

    Hi.
    you can override the dodml in the EntityImpl to test what DML operation is being performed.
    @Override
    protected void doDML(int operation, TransactionEvent transactionEvent) {
            if (operation == DML_INSERT) {
                //an Insert
            } else if (operation == DML_UPDATE) {
                //an Update
            } else if (operation == DML_DELETE) {
                //a Delete
    }http://docs.oracle.com/cd/E15051_01/web.1111/b31974/appendix_mostcommon.htm
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/appendix_formstriggers.htm

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

Maybe you are looking for

  • Bluetooth USB dongle stopped working

    I have an unbranded USB bluetooth dongle. I'm running osx 10.4.11 on a G4 Dual Optical. The dongle worked fine, plug and play and I have used it to Sync my Sony Ericsson mobile using iSync. I do not leave it plugged in as I use it on my work PC too.

  • Conversion of class files to source codes

    I was informed that it is possible to convert class files back to the java sourcs codes from where those are generated. How can I protect my source codes from illegal copying by others ?

  • Hi Guru's

    Hello, Will anyone guide me the procedure to generate Integration test scripts using SOLMAN.   mail me  at  [email protected] Reward points for answer. Regards, PV

  • Problems with OC4J EJB deployment and the data-sources.xml file

    I am running 2 Windows 2000 Machines one with the 8.1.7 database another with iAS 1.0.2.2.1 and OC4J. I am trying to deploy a 3rd party EJB-based application whic seems to have deployed successfully except when I try to test the EJB deployment via a

  • Problems with date in stacked bar charts

    I am having a lot of problems trying to generate stacked bar charts where one of the fields is a date. Using the chart generator in word, the stacked bar charts work perfectly if I use (for example) Labels=Country, Series=Product, Values=Quantity(Sum