JSX script executed through CSXS timing out?

So what I originally had was a simple .jsx script that I would execute from the Scripts menu. It would take several minutes to run as it iterates several hundred times making modifications to text layers.
It came time that I wanted to upgrade the script with a Flash interface, which is what I've been working on. Since there is no true asynchronicity to be had, I've modified my .jsx script so that instead of running all in one go, the JavaScript function processes only one item at a time and returns its progress. Meanwhile the Flash interface sits in a loop, calling this function through CSXSInterface.instance.evalScript and updating a progress bar until it reads that there are no more items to process.
Works great in theory, but for some reason the script will randomly stop around the 20th, 50th, whatever iteration, usually with a SyncResult status of InvalidInputParams (which I have NO idea how that could happen, since it's calling the exact same function with no parameters each time, and the function is returns the same XML string each time, with just a different number indicating progress).
I tried experimentally increasing the batch size from 1 to 8 (so that the JavaScript function loops 8 times before returning back to Flash), and now it unceremoniously halts after pretty much every batch.
Is there some kind of hidden execution timeout going on behind the scenes that is causing Flash to bail out of ActionScript when a JavaScript runs too long or something? If so, is there some way of disabling it? If not, does anyone know what could be going on here? Is there some way of dealing with this problem?
Thanks,
Dan.

Sorry if it wasn't clear; this is a Flash panel running in Photoshop. CSXS is required to run the JavaScript that has access to the Photoshop DOM.
Also, this is running CS4.
Thanks,
Dan.

Similar Messages

  • Apple Script - Apple Event is Timing Out

    i am a novice at apple scripting. i have written an apple script for backing up my desktop to my iPod. i was able to do this based on the basic info in my "panther- the missing manual" book that i have. i have the basic script working but after about 2 minutes into the backup, my "Script Editor" icon in the toolbar starts bouncing and when i click on it, i get a window that says that the apple event has timed out. the backup continues and finishes without problems. however, i would like to edit the apple script to correct this issue and eliminate this error message. i have tried experimenting with applescript commands but i have not been able to find a good primer to learn the language. i need to add script that will allow the event to run for four minutes before it times out.
    anyone know the applescript wording to fix my error message?
    thanks
    G4 Quicksilver AGP Graphics 500   Mac OS X (10.3.9)  

    Place the statements inside a block such as:
    with timeout of 240 seconds
    --commands
    end timeout
    (9861)
    thanks for getting back to me. i tried to use this additional script before, after and inside my original script and still was timing out.
    this is the last script i tried. the compiler compiles is fine. i just keep getting the "timeout" error message after two minutes. i have also tried your the additional script before the "tell" and after the "end tell". complies and runs fine in these other locations but still get the error message after two minutes.
    tell application "Finder"
    with timeout of 300 seconds
    --commands
    end timeout
    duplicate folder "Desktop" of folder "alan" of folder "users" of startup disk to disk "Encrypted iPod" with replacing
    end tell

  • Plsql script timing out...?

    I'm finding that when I run a script on a particular server it sometimes runs through all the way but if the time it takes is too long (say there are more than a certain number of records) it seems to hang. The limit seems to be about two hours. There is no error message, it just doesn't complete and the records don't seem to go. I am pretty confident this is not a bug in the script. Could it be timing out? Is there a server setting that would make this happen and if so can i find it out using sqlplus without being logged in as a sysadmin, so that at least I know what to ask the person who can make adjustments?

    As you don't say, what your script is doing, it is hard to say. But a wild guess would be, that you are modifying some data within this script and there are other transactions going on while the script is running. And by chance (the longer the script runs the bigger the chance), some records you are trying to modify in your script are already modifyed but not commited. So your session (i.e. script) is waiting until the other session issues a commit/rollback. And if the other transaction doesn't do a commit/rollback (he/she probably went for lunch) it seems your script is timing out.

  • I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

  • HT1918 Hi - I think I have different apple devices recorded under different apple IDs. Now I would like to consolidate all the devices under one Apple-ID.  I have tried to do this going through the manage accoung like, but it timed out - could somebody he

    Hi - I think I have different apple devices recorded under different apple IDs. Now I would like to consolidate all the devices under one Apple-ID.  I have tried to do this going through the manage accoung like, but it timed out - could somebody help, pls

    Purchases of multple Apple ID accounts cannot be merged as noted here >  Frequently asked questions about Apple ID

  • Timed Out error while executing BI report in Portal

    Hi Experts,
    When we are trying to execute a BI report which returns over 9 lac records, it is taking lot of time to get executed and then its throwing the timed out error.
    Can anyone help me resolving the issue?
    Is this a problem with the performance of Portal server or its just due to the huge amount of records that are being retrieved?
    Thank You.
    Regards,
    Murthy.

    I havent got any solution regarding this. But, due to constraint regarding number of open Question in the forum, I am closing this and as there is not other way I am marking it as answered.
    Please suggest any other way to close the thread if this is not the right way.
    Thank You.

  • Connection timed out when try to connect orb through iiop

    I have been trying to test a very basic corba example in weblogic 11g, it narrows an orb sucessfully with naming service, but I got connection timed out error when trying to call a function in the orb. My weblogic and my source code are on the same machine and I connect it with browser(coz it is a web application), so I doubt if it is firewall issues, but I could be wrong. I appericate so much if anyone can help.
    Here is the error message I got, you can see I listed all the objects in the naming service and I am able to locate Hello object:
    >
    Context: weblogic
    Object: Hello
    Context: javax
    Obtained a handle on server object: oraclecorba._HelloStub:Delegate(532227) [weblogic.iiop.IOR[IDL:oraclecorba/Hello:1.0] @xx.x.xx.xxx:xxxx, <0, null>]
    org.omg.CORBA.COMM_FAILURE: Connection timed out vmcid: 0x0 minor code: 0 completed: No
    at weblogic.iiop.Utils.mapToCORBAException(Utils.java:885)
    at weblogic.corba.idl.RemoteDelegateImpl.request(RemoteDelegateImpl.java:311)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
    at oraclecorba._HelloStub.sayHello(_HelloStub.java:18)
    at oracle.demo.corba.MyJSPHelper.jspSayHello(MyJSPHelper.java:71)
    at jsp_servlet._pages.__corbajsp._jspService(__corbajsp.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at weblogic.socket.SocketMuxer.newSocket(SocketMuxer.java:342)
    at weblogic.socket.ChannelSocketFactory.createSocket(ChannelSocketFactory.java:79)
    at weblogic.socket.BaseAbstractMuxableSocket.createSocket(BaseAbstractMuxableSocket.java:133)
    at weblogic.iiop.MuxableSocketIIOP.newSocket(MuxableSocketIIOP.java:266)
    at weblogic.iiop.MuxableSocketIIOP.createSocket(MuxableSocketIIOP.java:253)
    at weblogic.socket.BaseAbstractMuxableSocket.connect(BaseAbstractMuxableSocket.java:106)
    at weblogic.iiop.MuxableSocketIIOP.connect(MuxableSocketIIOP.java:238)
    at weblogic.iiop.MuxableSocketIIOP.createConnection(MuxableSocketIIOP.java:222)
    at weblogic.iiop.EndPointManager.createEndPoint(EndPointManager.java:464)
    at weblogic.iiop.EndPointManager.findOrCreateEndPoint(EndPointManager.java:239)
    at weblogic.iiop.EndPointManager.findOrCreateEndPoint(EndPointManager.java:256)
    at weblogic.iiop.IIOPRemoteRef.locateIORForRequest(IIOPRemoteRef.java:383)
    at weblogic.corba.idl.RemoteDelegateImpl.getInvocationIOR(RemoteDelegateImpl.java:535)
    at weblogic.corba.idl.RemoteDelegateImpl.request(RemoteDelegateImpl.java:256)
    ... 19 more
    >
    Here are my source code
    Server side
    package oracle.demo.corba;
    import oraclecorba.Hello;
    import oraclecorba.HelloHelper;
    import org.omg.CORBA.ORB;
    import org.omg.CosNaming.Binding;
    import org.omg.CosNaming.BindingIteratorHolder;
    import org.omg.CosNaming.BindingListHolder;
    import org.omg.CosNaming.BindingType;
    import org.omg.CosNaming.NameComponent;
    import org.omg.CosNaming.NamingContext;
    import org.omg.CosNaming.NamingContextExt;
    import org.omg.CosNaming.NamingContextExtHelper;
    import org.omg.CosNaming.NamingContextPackage.NotFound;
    import org.omg.PortableServer.POA;
    import org.omg.PortableServer.POAHelper;
    import weblogic.common.T3ServicesDef;
    public class ORBStartup{
         private T3ServicesDef t3servicesdef;
         public void setServices(T3ServicesDef t3servicesdef)
            this.t3servicesdef = t3servicesdef;
         public static void main(String[] args)
            throws Exception
             try{
                  args = new String[4];
                  args[0] = "-ORBInitialHost";
                  args[1] = "some_address";
                  args[2] = "-ORBInitialPort";
                  args[3] = "8056";
                  System.out.println("...............startup...........");
                   // Create a new object request broker
                   ORB orb = ORB.init( args, null );
                   // get the root POA
                   POA rootpoa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
                   // Activate PersistentPOA's POAManager, Without this
                   // All calls to Persistent Server will hang because POAManager
                   // will be in the 'HOLD' state.
                   rootpoa.the_POAManager().activate();
                // instantiate the servant
                   CorbaHelloImpl helloImpl = new CorbaHelloImpl();
                   helloImpl.setORB(orb);
                   org.omg.CORBA.Object helloObj = rootpoa.servant_to_reference(helloImpl);
                   Hello HelloRef = HelloHelper.narrow(helloObj);
               //  Resolve RootNaming context and bind a name for the servant.
                 // NOTE: If the Server is persistent in nature then using Persistent
                 // Name Service is a good choice. Even if ORBD is restarted the Name
                 // Bindings will be intact. To use Persistent Name Service use
                 // 'NameService' as the key for resolve_initial_references() when
                 // ORBD is running.
                   org.omg.CORBA.Object ncObj = orb.resolve_initial_references("NameService");
                   //This line works ONLY for INS(jdk 14 naming service)
                   // Since we have only an object reference, we must
                   // cast it to a NamingContext. We use a helper
                  // class for this purpose
                   NamingContextExt ncRef = NamingContextExtHelper.narrow( ncObj );
                   String name = "Hello";
                   NameComponent path[] = ncRef.to_name( name );
                   try {
                        ncRef.rebind( path, HelloRef );
                   } catch( org.omg.CosNaming.NamingContextPackage.NotFound nf ) {
                        NameComponent[] tmpName = new NameComponent[path.length-1];
                        for (int i=0; i < path.length-1; i++) { tmpName[i] = path; }
                        createContextPath(ncRef, tmpName);
                        ncRef.bind(path, HelloRef);
         BindingListHolder bl = new BindingListHolder();
         BindingIteratorHolder blIt= new BindingIteratorHolder();
         ncRef.list(1000, bl, blIt);
         Binding bindings[] = bl.value;
         for (int i=0; i < bindings.length; i++) {
         int lastIx = bindings[i].binding_name.length-1;
         // check to see if this is a naming context
         if (bindings[i].binding_type == BindingType.ncontext) {
         System.err.println( "Context: " +
         bindings[i].binding_name[lastIx].id);
         } else {
         System.err.println("Object: " +
         bindings[i].binding_name[lastIx].id);
                   System.out.println( name + " for INS ready and waiting ...");
                   // the server is now ready to receive the client request
                   orb.run();
              } catch (Exception e) {
                   System.err.println("ERROR: " + e);
                   //e.printStackTrace(System.out);
                   throw e;
              System.out.println("HelloServer Exiting ...");
    public static void createContextPath(NamingContext nc, NameComponent[] name)
         throws org.omg.CORBA.UserException {
         try {
              nc.bind_new_context(name);
         } catch (NotFound nf) {
              for( int len = name.length - nf.rest_of_name.length + 1;
                   len <= name.length; len++ )
                   NameComponent[] tmpName = new NameComponent[len];
                   for (int i=0; i < len; i++) { tmpName[i] = name[i]; }
                   nc.bind_new_context(tmpName);
    Client side:
    package oracle.demo.corba;
    import oraclecorba.Hello;
    import oraclecorba.HelloHelper;
    import org.omg.CORBA.ORB;
    import org.omg.CosNaming.Binding;
    import org.omg.CosNaming.BindingIteratorHolder;
    import org.omg.CosNaming.BindingListHolder;
    import org.omg.CosNaming.BindingType;
    import org.omg.CosNaming.NamingContextExt;
    import org.omg.CosNaming.NamingContextExtHelper;
    public class MyJSPHelper
         public static String jspSayHello(String in)
              String rc = "";
              try
                   ORB orb = ORB.init();
                   // get the root naming context
                   org.omg.CORBA.Object objRef;
                   objRef = orb.resolve_initial_references("NameService");
                   // Use NamingContextExt instead of NamingContext. This is
                   // part of the Interoperable naming Service.
                   NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
                   /*for(int i =0; i<orb.list_initial_services().length; i++)
                        rc += orb.list_initial_services()+": ";
                        System.err.println(orb.list_initial_services()[i]);
         BindingListHolder bl = new BindingListHolder();
         BindingIteratorHolder blIt= new BindingIteratorHolder();
         ncRef.list(1000, bl, blIt);
         Binding bindings[] = bl.value;
         for (int i=0; i < bindings.length; i++) {
         int lastIx = bindings[i].binding_name.length-1;
         // check to see if this is a naming context
         if (bindings[i].binding_type == BindingType.ncontext) {
         System.err.println( "Context: " +
         bindings[i].binding_name[lastIx].id);
         } else {
         System.err.println("Object: " +
         bindings[i].binding_name[lastIx].id);
                   // resolve the Object Reference in Naming
                   String name = "Hello";
                   Hello helloImpl = HelloHelper.narrow(ncRef.resolve_str(name));
                   System.err.println("Obtained a handle on server object: " + helloImpl);
    //Hello helloImpl = HelloHelper.narrow(orb.string_to_object("corbaname:iiop:some_address:8056#Hello")); also tried that, but got the same problem
                   rc = helloImpl.sayHello(in); //<----failed here
              catch(Exception e)
                   // TODO Auto-generated catch block
                   rc += e.toString();
                   e.printStackTrace();
              return rc;
    Edited by: user8904224 on 27/04/2010 23:06

    Don't mean to add to the possible confusion here, but most newer routers (Apple included) allow their users to "hide" their network, so it's also very possible and likely in an apartment situation that you can pick up interference from a network that you or Air Radar cannot "see".
    So, trying to find the "right" channel becomes a bit more of guessing game.
    Understand that you need "g" for your devices. For the future though, you might watch the Air Radar screen for channels in the 36-48 and 149-161 range to see how much less activity is going on there.

  • HELP!! "timed out" submiting video podcast through iweb to itunes

    I am trying to submit a vid podcast through iweb to itunes and am getting a timed out message. Please help. I have read other posts similar to my problem, and have checked to see that all of my fields are filled in. Don't know what the deal is. thanks for the help.

    This is what I received from iTunes help:
    Dear Eric,
    The iTunes team reviews each podcast submission. Depending on demand,
    it may take a week or two before the podcast is published.
    I'm sorry to hear you received an error when you tried to publish a
    podcast to the iTunes Store. If you are re-submitting a podcast for
    review, the iTunes Store may detect the submission as a duplicate and
    generate an error message stating that the feed has already been submitted.
    You can follow these steps to resubmit the podcast:
    1) Change the title and link fields of the RSS feed to something other
    than what they are now.
    2) Resubmit the podcast feed via iTunes.
    3) Once you have successfully submitted the podcast, you can change the
    title and link fields back to what they were.
    There are several less-common reasons iTunes might have displayed this
    error:
    * The podcast's RSS feed was not available.
    * The podcast's RSS feed timed out.
    * The podcast's RSS feed could not be validated.
    If you are the podcaster, make sure your podcast is available on the
    Internet. Your podcast's RSS feed also should conform to the iTunes
    extended podcast RSS specification.
    http://www.apple.com/itunes/store/podcaststechspecs.html
    If you're still having trouble, consider consulting the Apple
    Discussions forums, which have a wealth of information about specific issues.
    Click Producing Podcasts in the Pro Digital Production area of this page:
    http://discussions.apple.com
    If you are not the podcaster, please contact the podcaster and direct
    them to our specification.
    Thank you for your interest in the iTunes Store. Have a great day.
    Sincerely,
    Nicole
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww

  • Error Executing Database Query.coldfusion.sql.DatabaseConnectionException: Timed out trying to establish connection

    My coldfusion service crashes intermitantly and when I check
    the application logs the error that I see for the time frame is the
    one below. Does anyone know where I might begain to solve this?
    Thanks!
    Error Executing Database
    Query.coldfusion.sql.DatabaseConnectionException: Timed out trying
    to establish connection The specific sequence of files included or
    processed is: E:\wwwroot\lifeworks\default.cfm

    I'm no expert, but thought I would try to be helpful.
    I was getting this same error on a regular basis.
    The short term fix was to restart the ODBC server service.
    The long term fix was twofold:
    1. I recreated the ODBC connection in ColdFusion
    Administrator to use the system connection (I was using the SA and
    PW for login).
    2. I created a second user ODBC connection as well as the
    system one under ODBC in Windows Server 2003.
    I haven't had the problem since.
    I also read a pretty good set of "stuff" to try from the help
    area:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_17277
    Hope this helps.

  • Trying to update iphone to 5.0 and after going through the entire download, I get the message that "the Network Connection timed out".  Check my network settings.  Help!

    Trying to update iphone to 5.0 and after going through the entire download, I get the message that "the Network Connection timed out".  Check my network settings.  Help!

    I have been having this problem for many many months. I switched off my firewall and windows firewall and i am still having the same problems.
    Apple store were not helpful in anyway and im at my wits end :-(
    Any help welcome

  • TS1424 I have already downloaded wrath of the titans and watched it through but a download of the movie in the iTunes store still remains and also keeps timing out? This is preventing me from downloading any other movies onto my iPad any suggestions?

    I have already downloaded wrath of the titans and watched it through but a download of the movie in the iTunes store still remains and also keeps timing out? This is preventing me from downloading any other movies onto my iPad any suggestions?

    no, i had to leave so i logged out and when i opened itunes on my mac and went into the downloads tab it only had one paused download listed. i resumed the download for the one movie listed and the other one never showed up. its been about two weeks since i initially bought the two movies so i figured something was wrong.

  • Collection: (80004005) Execute: Query timed-out

    Hi,
    Recent days im facing a strange issue like the SCCM clients are not reporting the full Software inventory, so because of that we were unable to query using the software inventory details.
    The strange part is, while checking the logs "Inventory agent.log" it states "Collection: (80004005) Execute: Query timed-out".
    I wanna find what is the job of the Software inventory cycle and how to see at what point they stuck scanning...
    Any information helping me to proceed further with my investigation would be much appreciated.
    Thanks,
    Nana

    Thanks for the link Garth...
    We have scheduled software inventory to run on Sundays so that it should not impact client PC's performance. I agree it takes long time, but at some point we might require some information from those files. I also tried to create few test machine, but its difficult
    to duplicate this issue in them. Whenever we create a new machine, it reports good :(
    I was querying the machines who has collected "powershell.exe" files using software inventory cycle, i was able to fetch about 91% of the machines where as 9% has not. I tried to run a powershell query (Full software inventory) remotely on the machine where
    we are facing issues collecting software inventory. Monitoring the logs and i came up with this error.
    Here my question would be as its working on most of the machines why aren't they good on the rest. Even if we try to re-install the client, same status. Maybe because of the machine performance?
    Thanks for your help...

  • When using citrix through safari on my iPad , how do I keep it from timing out and having to keep logging back in when I don't use it for awhile?

    When using citrix thru safari on my iPad , how do I keep from getting timed out and having to log in again after not using it for awhile ?

    I know nothing about this app but I just did a very quick search on the app support forum for Citrix and saw something about enabling a setting called Caffiene. Have you tried that? It overrides the auto lock from what I saw in the discussion.
    I'm just not sure why the iPad would sleep at all if it the Auto Lock is set to never. The only other things that I could think to try is to restart the iPad and then see if the Auto Lock setting works properly or maybe quit all apps and then try again. That really shouldn't matter but there might be an app that is overriding the auto lock for some reason. Or even reset the device - hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears. The iPad system might just need a kick in the butt.
    Edit - after rereading your post I see that you are going through Safari. The suggestion that I found was for the Citrix app. I assume the Caffiene setting is not available through Safari.

  • Whenever I try to buy songs on my phone it goes through my credit card authentication process. When I select done it gives a message saying session timed out. What do I do?

    Whenever I try to buy songs on my phone it goes through my credit card authentication process. When I select done it gives a message saying session timed out. This has happened mulitiple times. What do I do?

    I figured it out!
    I read a solution for something that sounded similar.
    Anyone in similar position:
    Open iTunes app on iPhone, and pick an option from bottom, such as music. Then scroll down to bottom of page and where your iTunes ID is, press on it, and pick sign out.
    Then return to home screen, and double press home button and press and hold on first icon showing, until a minus symbol appears in the top left of icons present. Press on each minus symbol on each app in turn, until all app icons have disappeared. Then Restart the phone by pressing and hold the home button and the on/off/standby button at top of phone, until the apple symbol appears in centre of blank screen.
    Swipe to turn phone fully on and open settings and scroll down to iTunes and apps option and tap that. Pick sign in and put in your apple ID, it will accept it and then return to home screen and open iTunes a you'll find it works fine
    Simple really, but some like me won't think f this themselves!
    Hope that helps

  • How to write a shell script to execute a procedure with out parameter

    Hi,
    How to write a shell script to execute a procedure with out parameter.
    here is my procedure
    PROCEDURE sample(invar1 VARCHAR2,
    invar2 VARCHAR2,
    invar3 VARCHAR2,
    invar4 VARCHAR2,
    ecode out number);
    Any example really helpfull
    Thanks in advance

    Or if we're passing values in, maybe something like:
    Test procedure:
    CREATE OR REPLACE PROCEDURE p (myin IN VARCHAR2, myout OUT VARCHAR2)
    AS
    BEGIN
        myout :=
            CASE myin
                WHEN 'A' THEN 'APPLE'
                WHEN 'B' THEN 'BANANA'
                ELSE 'STARFRUIT'
            END;
    END;Shell script:
    #!/bin/bash
    my_shell_variable=$1
    unset ORACLE_PATH
    sqlplus -s un/pw@db <<-EOF
    set feedback off pause off
    set pagesize 0
    set autoprint off
    VAR out varchar2(30)
    VAR myin varchar2(30)
    exec :myin := '${my_shell_variable}'
    BEGIN
      p(:myin, :out);
    END;
    print out
    exit
    EOFTest:
    /Users/williamr: xx A
    APPLE
    /Users/williamr: xx B
    BANANA
    /Users/williamr: xx
    STARFRUITObviously in a real script you would not hardcode the password or let it show in a "ps" listing.
    Message was edited by:
    William Robertson

Maybe you are looking for