HOST command not working

Oracle AS Version 10.1.2.0.2, Oracle Forms Version 10.1.2.0.2, Windows XP.
I am using HOST command to read a files from the directory (on the server). But HOST does not working. When i click the button to read the file, it just hangs on and no error on the console.
Does host work on forms 10g?
actually i was using client_host of webutil and its working fine. But it pick the directory from the client. Whereas i need to pick it from the server where AS is. That why i went for HOST command.
Any suggestion.

Hi,
Try this.
1. Create a batch file (which would first set the required variables as when you do the "set".)
2. Add the following to the batch file.
C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\lib\rt.jar;C:\javasoft10g\paths;;C:\javasoft10g\paths\dusjava.jar; %1 %2 %3 %4 %5 %6 %7Save the batch file in some location (say c:\mybatchscript.bat).
From forms, call it like
host('cmd /c c:\mybatchscript.bat > c:\temp\testlog.log' );Now, does it work?
-Arun
P.S : Looks to me like, you are setting some variables (or calling another batch file - set , which sets up the variables). So, make sure you set all the required variables in the batch script itself.
-Arun

Similar Messages

  • HOST command not working in forms 10g

    Hi,
    I have migrated forms 6i to forms 10g, and having a requirement to open sqlplus prompt using a form menu. I have used the below command: -
    "host('sqlplus '||user_name||'/'||pass||'@'||sid, no_screen);"
    But I am not able to get the sqlplus window, and the main form is still in process for long time, till i bounce the server.
    The forms are deployed on Oracle Applications Server 10g and i want to run it on server side.
    Please help me with the problem.
    Thanks,
    Ankit

    The deployment architecture is different between forms 10g and forms 6i.
    In Forms 6i HOST built-in command will run on the client machine since you are running as client/server, but in WebForms (Forms10g) the HOST built-in command will run on the middle tier which is your application server machine.
    In order to run hosts commands in WebForms you need to use webutil and use CLIENT_HOST in the webutil.
    check the [Forms 10g R2 Demo|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] for sample codes of webutil.
    You are using NO_SCREEN in your example, this will hide the window.
    Tony
    Edited by: Tony Garabedian on Nov 26, 2009 2:43 PM

  • Host command not working properly

    Hi,
    I am using oracle forms 10.1.2.0.2.
    In my form, I need to call a unix shell script.
    { Oracle forms will run on application server.
    Unix will run in a development server.
    (Both the servers are different)
    From forms, if I click a button, it should call the unix shell script in a specified path.
    Internally, the unix script will call oracle to generate a file.
    In the file, some manipulations are done using unix.
    After doing some manipulations, the file is stored in a specified path in the unix box. }
    To achieve the above, I did the below things.
    To execute a unix shell script from my oracle forms (10g),
    1) the below configuration i added in the webutil.cfg file
    install.syslib.0.user.1=ffisamp.dll|40960|1.0|true
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.workAreaRoot=c:\temp
    transfer.appsrv.accessControl=TRUE
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=c:\temp
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=c:\temp
    2) I have attached webutil.pll library to my form
    3) I have subclassed object group from webutil.olb to my form.
    4) The host command i used is (these code are present in when-button-pressed trigger of a button)
    host('rsh selvas -l administrator sh <foldername>/if_csv.ksh',NO_SCREEN);
    if form_failure then
         emessage('hi selva');
    emessage(SQLERRM);
    else
         emessage('failure selva');
    end if;     
    when I click the button, I am getting the below messages,
    hi selva
    normal, successful completion
    Also, the script is not executing and it is not giving me the desired result.
    Can any one help me, where I am missing.
    Thanks,
    Selvaraj

    hi steve,
    Thanks for your response
    after the host command i added like this
    host.....;
    pause;
    if form_failure then
         emessage('hi selva');
    else
         emessage('failure selva');
    end if;     
    when I executed,
    I got the below messages
    PLEASE ACKNOWLEDGE
    -- when i clicked ok,
    it showed me failure selva
    but still the shell script has not executed.
    Note:
    In /tmp directory, no log files are available.
    Can you plz help
    thanks,
    selvaraj

  • SQLPLUS HOST Command Not Supported

    Hi,
    I am facing strange problem. I have lots of scripts where I have used the HOST command from within SQLPLUS.
    Now, on Windows Server 3000 Standard Edition, Version 5.2, I find that both HOST and its equivalent $, both are not supported when used with SQLPLUS on Oracle 10g Enterprise Edition.
    Please HELP, and suggest some alternative.
    Prashant

    There is no such thing as Windows Server 3000. The latest product appears to be Windows Server 2008.
    I'm not sure what the version of the Oracle database has to do with it. This is about SQL*Plus and you still haven't told us what version of that you are using. For example:
    SQL*Plus: Release 11.1.0.6.0 - Production on Sat Dec 6 15:56:12 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> host cd
    y:\sql
    SQL>This is sqlplus.exe (never sqlplusw.exe) version 11.1.0.6.0 on Windows XP Pro 2002 SP3. It's not the best example because SQL*Plus and the database are at the same version - they are often different. For example:
    /Users/williamr: sqlplus william/x@//vm.starbase.local:1521/eleven
    SQL*Plus: Release 10.1.0.3.0 - Production on Sat Dec 6 16:01:21 2008
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> ho uname -a
    Darwin starbase-2.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
    SQL> I've never known the host command not work, but perhaps someone with the same setup as you can confirm they don't have the same problem. I'm also a bit puzzled by the error message "Command not success." That doesn't sound like an Oracle command - apart from being vague and ungrammatical it doesn't start with the standard "SP2-nnnn" prefix, for example:
    SQL> x
    SP2-0042: unknown command "x" - rest of line ignored.Can you copy and paste the exact commands and results you get?
    Edited by: William Robertson on Dec 6, 2008 4:04 PM

  • Alt ctrl c shortcut command not working in photoshop cc, it is opening Internet explorer (IE)

    In Photoshop CC 2014  Alt + Ctrl + C ( to open for canvas size dialog box ) command not working, it is opening Internet Explorer (IE)

    What version of windows are you using?
    See if the Internet Explorer shortcut has that keyboard shortcut assigned to it.

  • Bash commands not working after upgrade to Lion

    After upgrade, many BASH commands not working. For example, such a fundamental thing as "ls". 
    iMac20:bin a$ ls
    Launch of "ls" failed: the PowerPC architecture is no longer supported.
    What does it have to do with PowerPC? My computer is 2.66 GHz Inter Core Duo

    Linc,
    iMac20:~ a$ which ls
    /sw/bin/ls
    Also, I managed to look (using tcsh's ls-F command) into the contents of /usr/. Here's what I see there:
    [iMac20:/bin] a% ls-F
    [*          csh*        echo*       ksh*        mkdir*      rcp*        stty*       wait4path*
    bash*       date*       ed*         launchctl*  mv*         rm*         sync*       zsh*
    cat*        dd*         expr*       link*       pax*        rmdir*      tcsh*      
    chmod*      df*         hostname*   ln*         ps*         sh*         test*      
    cp*         domainname* kill*       ls*         pwd*        sleep*      unlink*    

  • Why is my BDC_CURSOR command not working to position the cursor?

    Why is my BDC_CURSOR command not working to position the cursor?  Here are the details regarding my issue.
    I am writing a BDC to mass delete routing material assignments using transaction CA02.  I am OK to navigate through the initial screen to go to the Header screen and from here I am OK to navigate to the Material Assignments screen.  But once here, I cannot get the BDC_CURSOR command to take me into the list.  Here are the commands I am using.  Please let me know what I may try differently.
    CA02 Material Assignment - Set position  <-- this resets list of materials to correct position
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'MAPL-MATNR(01)'.    <-- this is not working to set the cursor into the list
      PERFORM bdc_field       USING 'BDC_OKCODE'  '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.

    Thank you for your reply.
    I had used SM35 to record.  However, I was not aware of the "create program" feature.  I had commented out a section from my previous post which I have now added back (latest code below).  But it still did not resolve the issue.
    When I execute with dismode = 'N', I get back error message "No batch input data for screen SAPLCZDI 1010".
    When I execute with dismode = 'E' (only show dynpros when error), it stops at the material selection screen without placing my cursor in the list.  I can then MANUALLY click to set the cursor position in the list, MANUALLY click the trashcan, it then uses my BDC command to respond to the popup asking "Do you want to delete", still leaving me at the material selection screen.  I can then MANUALLY click the green check (or enter), then it continues with the BDC to go back to the previous screen, and saves.  But it still will not place my cursor in the material selection list (SAPLCZDI screen 1010).
    Here is code used.  It is the second section of code labeled "CA02 Material Assignment - Delete" that is not working.
    CA02 Material Assignment - Set position
    this code functions to position the desired material to first in screen list
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR' 
                                    'MAPL-MATNR(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    Acknowledge Pop-Up Screen
      PERFORM bdc_dynpro      USING 'SAPLSPO1' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=YES'.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.

  • Odi os command not working with agentservice agent.

    dear all,
    odi os command not working with agentservice agent but with local agent it work fine.. and user is administrator.
    kindly solve it
    Regards
    Naseer

    Hi,
    you referred to oscommand, so are you executing a .bat fille? if yes, where exactly does the .bat file reside, local machine or on network share?
    Also, follow these couple of documents, they may be helpful to you.
    859215.1 and 424703.1
    Regards
    Srikanth

  • Crontab reboot command not working

    Crontab reboot command not working
    Greetings
    I am new at this so excuse any ignorant mistakes I might be making.
    I have a server (MM X.4.9) that I would like to restart every day in order to make sure no programmes are hanging etc. If a program is hanging is should force quit it. Using terminal I have entered the following command:
    sudo nano /etc/crontab
    Entered password
    Than I entered using tab between each sequence:
    15 13 1 1 * root reboot
    This was a test run and it did not reboot.
    Entering
    cat /etc/crontab
    I got:
    # The periodic and atrun jobs have moved to launchd jobs
    # See /System/Library/LaunchDaemons
    # minute hour mday month wday who command
    15 13 1 1 * root reboot
    What have I done wrong?
    Thanks

    Hehe, there you are experimenting with a "reboot" cron command and you are surprised it quit so fast. You are not going to find a "graceful" solution to shutdown dialogs.
    MSWord is a Java app, so it is especially important for the command to work that it doesn't get hung up on outer layers of the system. Especially stupid apps that use Java which is not well integrated. I believe Word has a 5 minute autosave, so you should be able to recover most of your document.
    This reboot command should be running around 2AM, when the average webserver has minimum traffic. If you feel the need to reboot during busier times of the day, I'd suggest you look at what's causing your applications to crash.

  • Illustrator Short Commands Not Working

    Hi Team,
    My illustrator CS6 short commands have stopped working.
    Any time I try to use any CMD + Key, illustrator will not react.
    This has been on going for a few months, I have tried resetting preferences but nothing has changed.
    If someone could please help.
    Thanks,
    Brandon

    Hi Jacob,
    I have tried resetting preferences and few other options.
    Anytime I press the CMD key the option at the bottom just changes from selection to direct selection, if that helps.
    Should I uninstall and reinstall illustrator?
    I no longer have my access key.
    Thanks,
    Brandon
    Date: Wed, 8 Jan 2014 15:39:58 -0800
    From: [email protected]
    To: [email protected]
    Subject: Illustrator Short Commands Not Working
        Re: Illustrator Short Commands Not Working
        created by Jacob Bugge in Illustrator - View the full discussion
    THS,
    You may try the following (you have tried/done some of them already) and see whether it helps (the following is a general list of things you may try when the issue is not in a specific file; 3) and 4) are specifically aimed at possibly corrupt preferences):
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press CtrlAltShift/CmdOptionShift during startup (easy but irreversible);
    4) Move the folder Other options (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
      http://www.adobe.com/support/contact/cscleanertool.html
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5994475#5994475
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5994475#5994475
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5994475#5994475. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Illustrator at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Here's where you need to change the settings: System Preferences > Keyboard > Keyboard Shortcuts:

  • Host function plus sudo command not working

    Hi,
    For normal command such as ls, it works.
    But when I run the following
    v_host := '/usr/bin/sudo -u devuser /test/app/dev/scripts/test.sh
    host(v_host);
    it does not work.
    anyone has idea ? Thanks.
    Ivan

    I imagine sudo is probably attempting to prompt for a password. I think it depends on who you are logged in as and who you are trying to log in as (and whether you have logged in recently within the last few minutes).
    The host command won't support this kind of interaction. It needs to be a command that returns its results without requiring any further prompting.
    That would be my guess.

  • Host Builtin Not Working in Linux

    I'm trying to convert a file using the linux command dos2unix through forms HOST builtin. I've set the path variable in the environment file to /usr/bin, where the dos2unix command resides. I've had no luck converting this file. I've also tried:
    host('/usr/bin/dos2unix file.txt');
    with no luck. If I log on as the same user that started the forms server and issue the dos2unix command through the terminal, the file is successfully converted.
    What else do I need to do to get the host builtin to work on Linux?

    You already have said the answer - the Forms server has been started with permissions that allow access to that file..if you are not logged in as that use you don't have the permissions to execute the file....
    Regards
    Grant Ronald

  • Host command not executing Excel File

    Hi,
    I am trying to open a Excel file through a bat file.
    And calling this bat file from Oracle Forms 10g - Forms [32 Bit] Version 9.0.4.0.19 (Production).
    But some how nothing is happening.
    But if I issue - host("echo hello > c:\hello.txt"); --> this works fine.
    Host command is as - host('cmd.exe /c c:\temp_dir\File_test.bat');
    and the bat file contains following lines -
    File_test.bat
    cd c:\temp_dir
    PATH c:\Program Files\Microsoft Office\Office11\
    EXCEL Book2.xls
    Can anyone please provide some guidance in this regard?
    Thanks in advance!
    Avinash.
    Pune- India.

    Hey Guys,
    Thanks for your replies,
    But it seems I couldn't communicate my point to you.
    I want to execute the command on application server and not on client machine.
    I guess by using WEBUTIL_HOST it will execute the the command on client side and not on application server.
    I hope i made my point clear.
    Thanks for your help, looking forward to get more help!
    Thanks again!
    Avinash.
    Pune - India.

  • Suddenly won't boot, start up commands not working... am I out of luck?

    Funny, this is my first mac being a hardcore and longtime PC user as my "test" mac... everything works perfectly... of course until 12 days after my warranty is up...
    This morning on waking up my mac to turn on some music in iTunes, i click on the iTunes window to bring it into focus. It suddenly closes and dissapears, on returning to the shortcut bar (the tray at the bottom for programs, i don't know what mac users call it) and click on iTunes ot relaunch it after its crash/dissapearance, the task tray then decides to suddenly dissapear/crash (don't know which, it's like a crash but best described as a vanishing act as it doesn't lag or churn before dying, just vanishes).
    Possibly related to this issue, not long ago my iChat stopped working, whenever i launched it, it would stay open for a couple seconds and automatically closed. I could sit there all day clicking it, it would open, 2 seconds later, close. I gave up on that. I gave up on that a week ago.
    Shortly after my iTunes dissapeared/crash and then after the program tray also dissapearing. my mac mini reboots. Except it's stuck on the screen with the mac apple in the middle of the screen with the moving (yes it's moving) pinwheel on the bottom center of the screen. I let it sit there for a long while... 15 minutes pass nothing happens.
    I try rebooting... same thing happens.
    I'm go on my PC (Which i'm now typing from) and start searching for solutions. apple support pages suggest I try safe mode with shift.
    SAFE MODE: Won't work. I tried pushing both shift buttons on my keyboard at different times (before the start up tone, immediately after the beggining of the start up tone, and after the start up tone finishes) all that happens is, I get the same pinwheel/apple screen that is "loading" (according to the pinwheel) forever.
    I went to forums, read up on other different commands like holding down "X" or option command P+R.... X does the same as the not-working safe mode... option command P+R continually reboots the computer.
    And in the end I'm still at square one. thouroughly frustrated. wishing my mac mini was a PC (as i've never had a PC problem I can't fix) Ironic experience... PCs, break often, easily fixed, no support needed.... Macs: rarely break, when they do, support needed, but support from apple expires 12 days ago, not easily fixed... and now I think i'm screwed out of the 700$+ i payed for this POS and I've lost my whole iTunes library, all the CDs i've loaded onto it, and all the music and TV shows i've purchased from the apple music store. Good game, apple takes a bunch of money, refuses to support my product which is now dead (had a similar situation with an iPod I had bought for my girlfriend).
    My only hope is... I know mac users have a happy helpful community and always band together to help fellow mac users, something the PC world doesn't as-cohsively have. So...
    Help me Obi-Wan Kenobi... you guys are my last and only hope.
    Thanks in advance.
    -John

    Hi, John. Welcome to the Discussions.
    1. You wrote: "I get the same pinwheel/apple screen that is "loading" (according to the pinwheel) forever"The "pinwheel" is known as a "spinning gear progress indicator."
    This, combined with the other issues you've reported, sounds like problems with the hard drive. I suggest you begin troubleshooting using the Procedure specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
    2. You wrote: "...the shortcut bar (the tray at the bottom for programs, i don't know what mac users call it)"It's called the Dock. See "Mac OS X: About the Dock."
    3. You wrote: "...this is my first mac..."My "Learning About Mac OS X" FAQ has a number of resources that you will find helpful including books, online training, and more.
    4. You wrote: "...Macs: rarely break, when they do, support needed, but support from apple expires 12 days ago, not easily fixed..."You should have bought the AppleCare Protection Plan (ACPP) before your warranty expired. The ACPP provides a two-year extension on the warranty and three years of telephone support.
    PS: Word to the Wise: watch the language. I appreciate your frustration, but don't let it into your posts. These forums are "family friendly" and a good way to get banned from them is to rant, use profanity (including profane abbreviations), etc. What passes for "acceptable behavior" on most PC/Windows forums is not tolerated here.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

Maybe you are looking for

  • Transport error - rsds does not exists

    I getting error " Target RSDS Z_ZDDP_HISTORY QASCLNT400 does not exist" while transporting some DSO with "before" option. It is strange because: 1. data source Z_ZDDP_HISTORY DO EXISTS in QAS system! 2. it is also exists on  ECC side 3. the option "c

  • Is this transfer possible?

    Is there any way of transfering files from one iPod to another? I tried this: My Computer>iPod 1>iPod_Control>Music>F00(Folder) I copied all the tracks randomly assigned to that folder from when I added them to my iPod via iTunes. And copied those sa

  • File Transfer Protocol

    Hi, For my project, am curretnly storing the files in local xi server directory.  We need to ask the client for a FTP server information. In order to achieve this, is it enough to ask just the file server name and port followed by user name and pwd.

  • Problem Uninstalling JRE 1.4.2_01

    Hi, i am having problems silently uninstalling JRE 1.4.2_01 on windows XP wonder if anyone can help, When running the silent uninstall command....... j2re-1_4_2_01-windows-i586.exe /s /v "/qn REBOOT=Suppress" /x......nothing happens. I am trying to u

  • PSE7 with Windows 7 - Drag & Drop Problems

    Hello, have some people experince in PSE 7 with OS Windows 7? I have some problems with the Drag & Drop function. If I drag a picturce from the explorer into PSE7, PSE7 freeze and need two minutes to come back. Have somebody any idea / solution? -->