Im stuck on trying to call another script

I have a script that I want to excute another script that places phone calls. I have both scripts done but my main script is not excuting my phone call script. From what I have read on the forum the highlighted line is what i think is what im supposed to do but it does not seem to be working. Sorry if this is a dumb question I am new at UCCX scripting.

Matt, I don't see what you are talking about when you say "the highlighted line."
Also, you didn't mention how your calling the second script from the first one.  I wonder if you meant to upload a screenshot?
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.

Similar Messages

  • Use subflow or redirect step when calling another script

    I have a main AA script and it calls another script when caller press option 6.  When a caller presss 6 it is only transferring the call to the sub script.  it does not return any values to the main script.
    In this situation, is it better to use subflow or redirect step.  i am think redirect step but just want to check with the user community.
    thanks in advance.

    Either will work. Here are a few thoughts to consider in no particular order:
    Subflows count toward the originally triggered scripts' maximum step count. If you have a lot of steps, this may result in an exception. Redirecting the call restarts this counter since the newly triggered script will have its own counter.
    NOTE: You might think that this is exactly why the Trigger Application step in Synchronous mode was created for. Alas, there is a bug which renders this useless in 7.0(1): CSCtd72562
    Redirecting the call will result in the user hearing ringback. This would occur because of the recommended two-second delay step following the Accept step of a step to prevent a race condition. I find this to be irritating enough to shy away from it mid-way through an IVR if possible.
    Subflows are more difficult to debug. You need to have sufficient code embedded in them such that you can trigger and reactively debug them.
    Be sure that the redirect destination of an actual CCX Trigger (CTI Route Point). Do not set it to a value in UCM that is translated or forwarded back to CCX. This results in a race condition which CCX does not handle well.
    If you were asking me as an individual my answer would be this: Is the code small enough and not reused elsewhere? If yes, then put it in the first script and avoid this topic all together. If it's reused in a bunch of places from multiple scripts and does not represent a large quantity of steps: use a subflow. Otherwise use Trigger Application if you're on a new enough version or Call Redirect if you're not.

  • Bash - calling another script's variables

    Can I refer to and alter one scripts variables from another, as I with functions?
    Is it something like
    source other_script
    ...and then just referring to the variable by name?
    Komodo

    yes. When you source it, you get everything from that script -just as if it were copied and pasted to the one you are running currently.

  • When server start, get "Waiting for another script to finish..." message and doesn't go anywhere.

    Hello, my engineer (Japanese) is trying to start AdobeMediaServer but he got stuck after getting "Waiting for another script to finish..." message. Any idea how to resolve this situation?
    [root@NA1SIBZDH02 /opt/adobe/ams]# ./server start
    NPTL 2.5
    chmod: changing permissions of `./tmp/': 読み込み専用ファイルシステムです
    Waiting for another script to finish...
    [root@NA1SIBZDH02 /opt/adobe/ams]#
    [root@NA1SIBZDH02 /opt/adobe/ams]#
    [root@NA1SIBZDH02 /opt/adobe/ams]# ls -l
    合計 52324
    drwxr-xr-x 15 ams  ams      4096  9月 11 17:54 Apache2.2
    -rwxr-xr-x  1 root root  1061035  9月 11 17:54 License.htm
    -rwxr-xr-x  1 root root    43374  9月 11 17:54 License.txt
    -rwxr-xr-x  1 root root    58827  9月 11 17:54 ReleaseNotes.htm
    -rwxr-xr-x  1 root root     5715  9月 11 17:54 adminserver
    -rwxr-xr-x  1 root root      871  9月 11 17:54 adobe-lq.png
    -rwxr-xr-x  1 root root     2912  9月 11 17:54 ams_icon.png
    -rwxr-xr-x  1 root root  3220552  9月 11 17:54 amsadmin
    -rw-r--r--  1 root root        6  9月 11 17:54 amsadmin.pid
    -rwxr-xr-x  1 root root 11187664  9月 11 17:54 amscore
    -rwxr-xr-x  1 root root  4331472  9月 11 17:54 amsedge
    -rwxr-xr-x  1 root root  3070840  9月 11 17:54 amsmaster
    -rw-r--r--  1 root root        6  9月 11 17:54 amsmaster.pid
    -rwxr-xr-x  1 root root     5242  9月 11 17:54 amsmgr
    drwxrwxrwx  6 ams  ams      4096  9月 11 17:54 applications
    -rwxr-xr-x  1 root root      960  9月 11 17:54 cleanup
    drwxr-x---  3 ams  ams      4096  9月 11 17:54 conf
    drwxr-xr-x  5 ams  ams      4096  9月 11 17:54 creds
    drwxr-xr-x  3 root root     4096  9月 11 17:54 documentation
    -rwxr-xr-x  1 root root 16368842  9月 11 17:54 libadbe_dme.so
    -rwxr-xr-x  1 root root   336065  9月 11 17:54 libadbe_flv.so
    -rwxr-xr-x  1 root root    59248  9月 11 17:54 libasneu.so.1
    -rwxr-xr-x  1 root root    71263  9月 11 17:54 libcares.so
    -rwxr-xr-x  1 root root    71263  9月 11 17:54 libcares.so.2
    -rwxr-xr-x  1 root root    71263  9月 11 17:54 libcares.so.2.0.0
    -rwxr-xr-x  1 root root  1968482  9月 11 17:54 libcrypto.so.1.0.0
    -rwxr-xr-x  1 root root   162403  9月 11 17:54 libexpat.so.1
    -rwxr-xr-x  1 root root  3497472  9月 11 17:54 libfmsccme.so
    -rwxr-xr-x  1 root root  6992879  9月 11 17:54 libhds.so
    -rwxr-xr-x  1 root root   403767  9月 11 17:54 libssl.so.1.0.0
    drwxr-xr-x  2 root root     4096  9月 11 17:54 licenses
    drwxrwxrwx  2 root root     4096  9月 11 17:54 logs
    drwxr-xr-x  5 root root     4096  9月 11 17:54 modules
    drwxr-xr-x  6 root root     4096  9月 11 17:54 samples
    drwxr-xr-x  3 root root     4096  9月 11 17:54 scriptlib
    -rwxr-xr-x  1 root root     7494  9月 11 17:54 server
    -rwxr-xr-x  1 root root   300864  9月 11 17:54 shmrd
    -rwxr-xr-x  1 root root    36206  9月 11 17:54 tcSrvMsg
    drwxrwxrwx  2 root root     4096  9月 11 17:54 tmp
    drwxr-xr-x  9 root root     4096  9月 11 17:54 tools
    -rwxr-xr-x  1 root root     2411  9月 11 17:54 uninstallAMS
    drwxr-xr-x  8 ams  ams      4096  9月 11 17:54 webroot
    [root@NA1SIBZDH02 /opt/adobe/ams]#
    [root@NA1SIBZDH02 /opt/adobe/ams]#
    ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.<br />
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls

  • Form exits when calling another form

    I have a form that passes parameters to another form. When creating new records and then calling the other form, it works fine. However, when coming from a post query and then passes parameters to a new form, the form exits upon calling of the other form. What causes this? Thanks for your help. I am using Forms Developer 6.0
    Edited by: user6656248 on Apr 14, 2009 8:30 PM

    My form is intermittent, when creating new records, sometimes the other form is called and parameters are passed but sometimes nothing happens and there are no errors. But from post query, calling another form and passing parameters exits the calling form and the called form does not show up. This form calls another form and passes some parameters without problems but when I tried to call another one, those scenarios happen. I am confused because the codes on both my When-Button-Pressed trigger are 100% similar. I dont know why this happens on this one and NEVER on the other. I hope you understand my query. Thanks a lot for responding. Please help.
    Here is my code:
    DECLARE
    form_id      FormModule;
    pl_id      paramlist;
    pl_name      varchar2(1000);
    it_id      Item;
    BEGIN
    pl_name := 'temp';
    pl_id      := get_parameter_list(pl_name);
         IF NOT ID_NULL(pl_id) THEN
         destroy_parameter_list(pl_id);
         END IF;
    pl_id := create_parameter_list(pl_name);
    add_parameter(pl_id,'L_OUT_DATE',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.OUT_DATE,'DD-MON-RRRR HH24:MI:SS'));
    add_parameter(pl_id,'L_DATE_IN',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.DATE_IN,'DD-MON-RRRR HH24:MI:SS'));
         add_parameter(pl_id,'L_SUBSTATION_CODE',TEXT_PARAMETER,:DAILY_OUTS.SUBSTATION_CODE);
         add_parameter(pl_id,'L_BREAKER_CODE',TEXT_PARAMETER,:DAILY_OUTS.BREAKER_CODE);
         add_parameter(pl_id,'L_CIRCUIT_CODE',TEXT_PARAMETER,:DAILY_OUTS.CIRCUIT_CODE);
         add_parameter(pl_id,'L_REMARKS',TEXT_PARAMETER,:DAILY_OUTS.REMARKS);
         add_parameter(pl_id,'L_FREQUENCY',TEXT_PARAMETER,:DAILY_OUTS.FREQUENCY);
         add_parameter(pl_id,'L_OUTAGE_CODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_CODE);
         add_parameter(pl_id,'L_OUTAGE_SUBCODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_SUBCODE);
         add_parameter(pl_id,'L_WEEK_NO',TEXT_PARAMETER,:DAILY_OUTS.WEEK_NO);
         add_parameter(pl_id,'L_RADIO_GRP',TEXT_PARAMETER,:DAILY_OUTS.NEW_OUTAGE_GRP);
         add_parameter(pl_id,'L_RELAYS_ACT',TEXT_PARAMETER,:DAILY_OUTS.RELAYS_ACT);
         add_parameter(pl_id,'L_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.TRIP_CAUSED_BY);
         add_parameterr(pl_id,'L_SCODE_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.SC_CAUSED_BY);
         add_parameter(pl_id,'L_ACTION_TAKEN',TEXT_PARAMETER,:DAILY_OUTS.MEASURE);
    :GLOBAL.BC := 1;
    IF :daily_outs.out_date > sysdate +1 then
         MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
    DATE/TIME-OUT VALUE.', acknowledge);
         MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
    DATE/TIME-OUT VALUE.', acknowledge);
         RAISE Form_Trigger_Failure;
    END IF;
    IF :daily_outs.date_in IS NOT NULL AND :daily_outs.out_date IS NOT NULL THEN
         IF (:daily_outs.date_in - :daily_outs.out_date) <= 0 then
    MESSAGE('DATE/TIME-IN IS LESS THAN OR EQUAL TO DATE/TIME-OUT. PLEASE ENTER NEW
    DATE/TIME-IN VALUE.', acknowledge);
    RAISE Form_Trigger_Failure;
    END IF;
    END IF;
    OPEN_FORM('FRMSPM_DAILY_BRKRS_PARAM', ACTIVATE, NO_SESSION, SHARE_LIBRARY_DATA, pl_id);
    END;

  • Calling Ant script from Jdeveloper

    Hello Gurus,
    I am trying to call Ant script from Jdeveloper.
    I am able to call it when i don't use any javac in ant script.
    But as soon as i include a javac command
       <javac srcdir="${src}" destdir="${build}"/>
    I get below error
    C:\ant\windows\svn\AntJava\Project1\build.xml:20: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "C:\Oracle\jdk160_24\jre"
    Needless to say i already have implemented all the steps mentioned in the internet.
    I have my JAVA_HOME correctly set in my PATH environment variable.
    I have tools.jar in the CLASSPATH
    Please give a solution from JDeveloper perspective and not a generic one as i am done with all the steps provided in internet.

    any one?????

  • How to call eCATT scripts thru QTP

    Hi friends,
    I am trying to call eCATT scripts thru QTP.
    Tell me the minimum requirements to communicate QTP to ECA system.
    <b>Note:</b> I installed SAP Addins.
    Thanks,
    Nagaraju

    Hi Nagaraju,
    First and foremost, You should have a QTP installed in your system.
    You should have a licence to use QTP in ECA.
    Then, You should create a script for every QTP script you have and refext them in one of your master scripts or where ever you want to refer them.
    While create an eCATT for a QTP Script, give a name, version(optional) and the QTP option in the external Tool field. Enter your script and give the mandatory fields like title, Component and then press on button "Script" and brouse to the QTP script location.,
    Save your ecatt and use it anywhere as you use your general scripts, but remember to use REFEXT instead of REF to call your QTP encbled eCATT scripts.
    Hope this answers your queries.
    -Harsha
    PS: reward points, if this answers your queries and also reward for everyone participated.

  • Calling PERL script from scheduler

    Hello All,
    I am trying to call PERL script from dbms_scheduler which makes the database connection using DBD module to read some values to perform the operation. My scheduler job kept failing with the following error:
    ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory
    STANDARD_ERROR="install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file
    It can't open libclntsh.so.10.1 file when I run the job, I guess because in job session, it creates a new shell and doesn't inherit the .profile and none of the environmental variables get set. When I run the PERL script manually it works because of all the env variables, so I put all those variables from my .profile into PERL script itself using ENV function but it still doesn't work, failed with very same error. And yes I do set LD_LIBRARY_PATH to point to $ORACLE_HOME/lib directory. Moreover, if I run the PERL script manually from a shell where I dont inherit .profile, it fails with very same error, so it is related to the environment issues but I have no idea how to fix it. I read somewhere the setting those env variable in PERL script itself doesn't help because by the time PERL get executed all the compilers are already initialized and and they don't use those environement variables anymore then. So the question is how to make it work?
    I would really appreciate if someone can help me fixing this, it's gonna change my life here :)
    DB Version: 10.2.0.2 (also tested on 11R2, same problem)
    OS: SUSE Linux 64 bit
    And here is my libclntsh file in $ORACLE_HOME/lib
    $ls -l libclnt*
    lrwxrwxrwx 1 epsora epsdba 52 2009-09-15 13:39 libclntsh.so -> /u01/app/epsora/product/10.2.0/lib/libclntsh.so.10.1
    -rwxr-xr-- 1 epsora epsdba 20274415 2009-09-15 13:39 libclntsh.so.10.1
    -rw-r----- 1 epsora epsdba 36840968 2009-09-15 13:38 libclntst10.a
    Please let me know if you need more information about this setup.
    Thanks
    Daljit Singh
    Edited by: Daljit on Jul 6, 2010 10:06 AM

    Nothing in your post indicates that you created a directory object and granted privileges.
    http://www.morganslibrary.org/reference/directories.html
    did you?

  • Calling javaFX script from Java program

    I am trying to call JavaFX script from a simple Java program. code as follows:
    import java.io.*;
    import javax.script.ScriptEngine;
    import javax.script.ScriptEngineManager;
    public class My{
    public static void main(String[] args) {
    ScriptEngineManager manager = new ScriptEngineManager();
    ScriptEngine engine = manager.getEngineByExtension("fx");
    try {  
    InputStreamReader reader = new InputStreamReader(My.class.getResourceAsStream("first.fx"));
    engine.eval(reader);
    reader.close();
    } catch (Exception e) {
    e.printStackTrace();
    my first.fx file code is here:
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.text.TextAlignment;
    Stage {
    title: "My First JavaFX Sphere"
    scene: Scene {
    width: 250
    height: 250
    content: [
    Text {
    font: Font { size: 24 }
    x: 20, y: 90
    textAlignment: TextAlignment.CENTER
    content:"Welcome to \nJavaFX World"
    } //Text
    ] // content
    } // Scene
    } // Stage
    I am not able to run My.java. runtime error as follows:
    java.lang.NullpointerException
    Kindly correct me, where I am wrong

    I am able to call .fx file from Java. Thank you all for helping me to resolve this problem
    Regards,
    Ritu

  • Calling ant script from another's project ant script

    Hello there,
    I would like to ask something about ant script. Sorry if this is not the right forum but I could not find a better one.
    I have 2 projects ProjectA and ProjectB in 2 different direcory structures, that contain 2 different build.xml files. I am trying to call ant of ProjectA inside the build.xml file of ProjectB like the following:
             <!-- inside build.xml of ProjectB-->
            <target name="buildProjectA">
                <ant antfile="${ProjectA.root}/build.xml" dir="${ProjectA.root}" inheritAll="false"/>
            </target>Unfortunately I get a different output than calling ant for Project A from the command prompt. Shouldn't this call to ant for ProjectA from ProjectB be exactly the same as calling ant from the command Prompt

    thanks for your reply,
    the problem is not that it does not file the xml file (although you re right, I changed it) but that later on in the building it behaves differently
    So, basically, what I want to know, is this the right way I am doing it or the two approaches are different cause in my approach ant is not called from the project's directory but from another ant script?

  • PHP script calling another but staying on same page

    Hi,
    Im thinking of writing an additional PHP page, that has a link to another PHP page, to do an insert. On the current PHP page, I have a counter which I would want incrementing after the 2nd PHP script is called, but don't think its possible?
    I'm saying this as I will need an anchor to another script which when called, will load another PHP script - which will do the insert, but take me away from the current page.
    So basically, I want to stay on the first PHP script showing a counter, click to call another PHP script, but all the user will see is a counter increment.
    Here is what I have thought will not work:
    <code>
    echo "<br><span class=\"style1\"><a href=\"./../Test/count.php\"><img src=\"./Up.JPG\"></a>";
    </code>
    Thanks in advance...

    Hi,
    got a bit further now in that i'm calling the php script through Ajax successfully, but, got the issue where i am getting the same value sent to the script (dataString):
    source script:
    <script type="text/javascript" >
    $(function()
    $(".submit").click(function()
      var likeid = $("#likeid").val();
      var dataString = 'likeid='+ likeid ;
      var locurl = "./../Test/it.php?randval="+Math.random();
      $.ajax({
       type: "POST",
       url: locurl,
       data: dataString,
       success: function()
        $('.success').fadeIn(200).show();
        $('.error').fadeOut(200).hide();
      return false;
    </script>
    target script (it.php)
    <?php if(!$_SESSION) { session_start(); } ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <html>
    <head>
    </head>
    <body>
    <?php
    $_SESSION['name']=session_id();
    $sess=session_id();
    $likeid=$_POST['likeid']; <----------------------always the same value
    if($_POST)
      $result2 = mysql_query("INSERT INTO Test (value, sess) VALUES ('$likeid', '$sess')")
      or die(mysql_error());
    ?>
    </body>
    </html>
    what i get is the same value for $likeid on every call from the source script. In the source script i have:
    <form method="post" name="form1">
    <input type="hidden" name="likeid" id="likeid" value="CAR79668"/>
    <a href="#"><img src="./Up.JPG" border="0" class="submit" onclick="change11('CAR79668');"></a>
    <b id="CAR79668" value="2">2</b> </form> </span>
    <form method="post" name="form2">
    <input type="hidden" name="likeid" id="likeid" value="CAR79669"/>
    <a href="#"><img src="./Up.JPG" border="0" class="submit" onclick="change11('CAR79669');"></a>
    <b id="CAR79669" value="2">2</b> </form> </span>
    Why does the same value of CAR79668 get passed to the target script on every call?
    Thanks.

  • Can we call another flavor using launch button or script button

    I am creating a Welcome screen ( 1st  flavor for SMEN transaction) . However I want to call another flavor ( 2nd flavor for SMEN transaction) from 1st flavor . Second flavor will have a few transactions ( for example which are used only for budgeting , so this flavor will work as a budget cockpit) . I know we can make both flavors available in users' flavor bar , but we really wanted to give them a push button which takes them to  this new flavor . This is less confusing for users . Is there a way to do that ?
    Or is there a way to call Favorite folder ?
    Thanks

    Thamas,
    I tried doing what you suggested , but I am not able to point to the new flavor .I guess there is no control ID for a flavor and Dynpro screen for SMEN flavor are all same .
    I am not able to open up just this new flavor , my link opens up to the same welcome screen with all flavors in flavor bar.
    Thanks
    Ruchi 

  • Does the iPhone let the caller know if the person thry are trying to call is on another call

    Does the iPhone let the caller know if the person thry are trying to call is on another call. Both are using iphones

    Liamcallum wrote:
    Surely would be better to get sorry the person you are trying to call is on another call.....
    Why? It doesn't change the fact that they are not answering my call. If they want to let me know why, they will.
    It used to be the case that my carrier would put a beep at the end of the ring tone if the person you were calling was on another call. But they stopped it ages ago.

  • I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !

    Thanks !
    Kudos always welcome for helpful posts

    Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !Hi Stephan ! Thanks ! I guess I explained my question not so right. I've created a customized menu and at the instance of me selecting a menu, a VI should load itself dynamically. I am using call by reference. Sometimes it works and sometimes it won't. In short, what I want to achieve is load VIs dynamically and close them dynamically once they finish executing. Thanks !
    Kudos always welcome for helpful posts

  • Calling an expect script from another script (sh)

    How to call the EXPECT utility from SHELL script?
    Our objective is - We have developed a shell script to connect the oracle database and generate the XML file and this XML file needs to be transfer to another windows machine using the SFTP servcies. We are planning to schedule this job using the CRONTAB.
    Our first script 1:
    # connecting to oracle database and generating the file
    ORACLE_SID=TEST
    ORACLE_HOME=/u01/oratest/db/tech_st/11.1.0
    export ORACLE_SID ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    PATH=$ORACLE_HOME/bin:$PATH
    output=`sqlplus -s /nolog <<EOT
    set pages 0 feed off
    whenever sqlerror exit failure;
    connect xgbzprod/xgbzprod
    exec XGBZ_GL_COA_XMLTAG_PROC;
    EOT
    `
    cd /u01/oratest/gebiz_processed
    for fn in GEBIZ_COA_RPO000*.*; do
    # using the EXPECT utility to transfer the generated file to antoher machine
    set timeout 10
    spawn $env(SHELL)
    match_max 100000
    send -- "sftp username@IP Address\r"
    expect -exact "[email protected]'s password:"
    send -- "Password\r"
    expect -exact "sftp>"
    send -- "cd /<SFTP location>\r"
    expect -exact "sftp>"
    send -- "lcd /<Local locatoin>\r"
    expect -exact "sftp>"
    send -- "bin\r"
    send -- "put $fn\r"
    expect -exact "sftp>"
    send -- "quit\r"
    send -- "exit\r"
    expect eof
    -- When we run the above script it failes and the script is not recognizing the other variables.
    -- We have split the procedure to keep the oracle connection in one script and another script for EXPECT utility. But we are lack of how to call the EXPECT utility in shell script.
    Please help us
    Thank
    Dhanraj Chilla

    You might want to try to better understand shell script programming. It makes it otherwise difficult for a poster to recommend you a solution. I don't believe you can expect others to do all the development and testing work for you. Since this is a forum on a volunteer basis, you might also want to consider marking helpful replies and review received answers more carefully.
    Perhaps the following will work for you:
    #!/bin/bash
    export ORACLE_SID=TEST
    export ORACLE_HOME=/u01/oratest/db/tech_st/11.1.0
    export ORACLE_SID ORACLE_HOME
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$PATH
    echo
    output=`sqlplus -s /nolog <<EOT
       set pages 0 feed off
       whenever sqlerror exit failure;
       connect xgbzprod/xgbzprod
       exec XGBZ_GL_COA_XMLTAG_PROC;
    EOT
    `
    echo "$output"
    username="oratest"
    hostname="11.10.11.159"
    password="welcome1"
    for fn in GEBIZ_COA_RPO000*.*; do
       echo "GL Chart of Accounts File Name : " $fn
    /sftp.exp "$username" "$hostname" "$password" "$fn"
    done
    #!/usr/bin/expect -f
    set username [lindex $argv 0]
    set hostname [lindex $argv 1]
    set password [lindex $argv 2]
    set fn [lindex $argv 3]
    spawn sftp $username@$hostname
    expect -exact "[email protected]'s password:"
    send -- "$password\r"
    expect -exact "sftp>"
    send -- "cd /sftp0002/uat/inbox\r"
    expect -exact "sftp>"
    send -- "lcd /u01/oratest/processed\r"
    expect -exact "sftp>"
    send -- "put $fn\r"
    expect -exact "sftp>"
    send -- "quit\r"
    send -- "exit\r"
    expect eofP.S. The above code is very simplistic and does not take error handling into account.
    Using CURL, like I suggested in my first reply was an easier solution, since you don't need to to script Expect, but it turns out that you might need Enterprise Linux 6 or install at least CURL verison 7.19 to support sftp.

Maybe you are looking for

  • How di I watch a rented movie on my ipad2?

    How do I watch a rented movie on my ipad2?

  • Adding signature via Wacom tablet in Pages...possible?

    Seems MS Word 2007 has inking feature...can't locate anything like it in Pages. I love my new Bamboo Fun tablet, but I don't know how to use it to add signatures to documets created in Pages. Anyone have a solution? Thanks in advance!

  • Policy service error: encoding problem or known bug ?

    I have an error 500 in my browser when I try to access a web agent (3.0) protected (Apache 2.2) web site. I see the following error in the AmAgent log file, it looks like an encoding or dos2unix conversion problem (I have no Windows platform, only Re

  • Problems while creating local service order on client in MAM

    I have MAM2.5 on PC. I have created a local notification and synced it. based on that notif , I am trying to create a service order.But after Sync , I get following error in monitor (merep_mon on MI server) under MAM_001: Return code from RFC BAPI Wr

  • Aperture support for RAW Nikon D600.

    Just bought the latest Nikon D600 and when loading RAW images, I'm getting a "Format not supported" error.  It reads the JPEG just fine but not the RAW.  I also have a Nikon D3S and it reads the RAW images just fine.  I'm currently on Aperture V3.2.