Executing command line utility

Hi all,
I'm trying to use the Runtime and Process classes to launch a win32 command line utility from within my java app.
I can successfully launch the app with no arguments and have it print the help description to a JTextArea. This is the behavior of the utility if you simply call it with no arguments.
But when I call the utility with some arguments, the java app seemingly locks up and I get no input from either getInputStream() or getErrorStream()
I also tried passing the arguments to the utility in a String[] with no luck. Also tried having the Runtime.exec() function call a .bat file with no luck, even though launching the bat file directly works fine.
Does anyone know how to work with a command line utility from within java? Is it possible to have it at least pop up a console window so I can see what is going on?
Any help would greatly be appreciated..
I've read the API's and relavent topics on the forums only to find myself even more confused on whether this is possible.
Regards,
Jim

Well, I've been trying all sorts of combinations of the code, so it changes often.
here is what I have now..
<CODE>
     private void fetchDB()
          try
               Runtime rt = Runtime.getRuntime();
               Process p = rt.exec("pilot-xfer.exe");
               BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
               String s = "";
               while((s = in.readLine()) != null)
                    resultsTextArea.append(s);
               in.close();
               BufferedReader errIn = new BufferedReader(new InputStreamReader(p.getErrorStream()));
               String e = "";
               while((e = errIn.readLine()) != null)
                    resultsTextArea.append(e);
               errIn.close();
          catch(IOException i)
               resultsTextArea.append("IO Exception");
</CODE>
I tried the way you outlined above but it seems to ignore the arguments and prints out the help text as if no arguments were given.
The full command I'm trying to pass is:
"pilot-xfer.exe -f CH-ResultsDB"
This command should prompt a single line telling the user to hit the HotSync button on their palm and once they do it will fetch the specified database.
I also tried calling a .bat file that would then do the command with identical results. If the bat simply said "pilot-xfer.exe" with no arguments it would work. if I add arguments the java app seems to lock up.
Note, running the .bat file by itself works fine with or without arguments.
Thanks for any help you can provide, this problem has been badgering me for nearly a week now..
Regards,
Jim

Similar Messages

  • What is happening about: The GNU Bourne Again Shell (Bash) is a command line utility widely used in many Unix-based operating systems including Linux and OS X.  Researchers have discovered a critical flaw in Bash which could allow remote code executi

    Authoritative advice today:
    The GNU Bourne Again Shell (Bash) is a command line utility widely used in many Unix-based operating systems including Linux and OS X.
    Researchers have discovered a critical flaw in Bash which could allow remote code execution by an unauthenticated user
    APPLE response?

    Also see:
    http://www.macrumors.com/2014/09/26/apple-os-x-users-safe-bash-flaw-update-soon/
    If you are not running a web server
    If you have not enabled CUPS web interface
    If you do not allow anonymous users to ssh into your Mac.
    If all are no, they you are not at risk.
    This IS a very serious bug for web servers, but the typical consumer Mac user is not at risk.

  • OWB command-line utility

    How to execute the OWB projects/modules/objects from command line.
    After creation of objects for particular module (source, target, mapping and transformations...etc.,) in OWB, is there any command-line utility to execute that module from command-line instead of OEM, so that any another application can invoke the ETL process.

    Jagan,
    Check out the sqlplus_exec_template.sql in <owb home>\owb\rtp\sql. You can run this from the command line.
    Thanks,
    Mark.

  • XP to windows7: Executing command line: "bcdedit.exe". CreateProcess failed. Code(0x80070002)

    I m working to migrate from XP SP3 to Windows 7 using SCCM 2012 R2 CU4 but I have a boot error similar as above. Normally with CU4, XP will be supported by WInPE 5.1 (ADK 8.1). it's a refresh scenario, the task sequence was launched from XP. USMT will
    use a local store.
    The smsts log has a content as follow:
    [Successfully completed the action (Restart Computer in WinPE) with the exit win32 code 0]LOG]!><time="10:18:00.843+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
    file="instruction.cxx:830">
    <![LOG[Set authenticator in transport]LOG]!><time="10:18:00.859+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="libsmsmessaging.cpp:7734">
    <![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="10:18:01.156+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="10:18:01.156+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
    <![LOG[Clear local default environment]LOG]!><time="10:18:01.156+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:807">
    <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="utils.cpp:1704">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=0]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:833">
    <![LOG[Executing command line: "bcdedit.exe"]LOG]!><time="10:18:01.234+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="commandline.cpp:827">
    <![LOG[CreateProcess failed. Code(0x80070002)]LOG]!><time="10:18:01.234+240" date="02-26-2015" component="TSManager" context="" type="3"
    thread="1740" file="commandline.cpp:1018">
    <![LOG[Command line execution failed (80070002)]LOG]!><time="10:18:01.234+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="commandline.cpp:1245">
    <![LOG[Staging boot image P0100002]LOG]!><time="10:18:01.250+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootimage.cpp:717">
    <![LOG[ResolveSource flags: 0x00000000]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="resolvesource.cpp:3201">
    <![LOG[SMSTSPersistContent: . The content for package PO100002 will be persisted]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
    file="resolvesource.cpp:3212">
    <![LOG[Locations: Multicast = 0, HTTP = 1, SMB = 0.]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="resolvesource.cpp:2749">
    <![LOG[Multicast is not enabled for the package.]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="resolvesource.cpp:2789">
    <![LOG[Trying
    http://sccmsrv.contoso.com:80/SMS_DP_SMSPKG$/P0100002/sccm?/boot.PO100002.wim to C:\_SMSTaskSequence\Packages\PO100002\boot.PO100002.wim ]LOG]!><time="10:18:18.265+240" date="02-26-2015" component="TSManager" context=""
    type="1" thread="1740" file="downloadcontent.cpp:1592">
    <![LOG[VerifyContentHash: Hash algorithm is 32780]LOG]!><time="10:18:18.265+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="downloadcontent.cpp:1870">
    <![LOG[Found boot image C:\_SMSTaskSequence\Packages\PO100002\boot.PO100002.wim]LOG]!><time="10:18:22.156+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
    file="bootimage.cpp:1115">
    <![LOG[Copying boot image locally...]LOG]!><time="10:18:22.156+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootimage.cpp:745">
    <![LOG[ADK installation root registry value not found.]LOG]!><time="10:18:30.125+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:207">
    <![LOG[Loaded C:\Program Files\Windows Imaging\wimgapi.dll]LOG]!><time="10:18:30.171+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:344">
    <![LOG[Opening image file C:\_SMSTaskSequence\WinPE\sources\boot.wim]LOG]!><time="10:18:30.171+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:422">
    <![LOG[Applying image 1 to volume C:\_SMSTaskSequence\WinPE]LOG]!><time="10:18:30.296+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:613">
    <![LOG[Closing image file C:\_SMSTaskSequence\WinPE\sources\boot.wim]LOG]!><time="10:18:32.906+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:458">
    <![LOG[Capturing WinPE bootstrap settings]LOG]!><time="10:18:32.921+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="winpesettings.cpp:80">
    <![LOG[Environment scope successfully created: Global\{E7E5BB69-6198-4555-B5CA-6C46A2B5EB78}]LOG]!><time="10:18:32.921+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
    file="environmentscope.cpp:623">
    <![LOG[Executing command line: "osdnetsettings.exe" capture adapters:true scope:Global\{E7E5BB69-6198-4555-B5CA-6C46A2B5EB78}]LOG]!><time="10:18:32.921+240" date="02-26-2015" component="TSManager" context=""
    type="1" thread="1740" file="commandline.cpp:827">
    <![LOG[==============================[ OSDNetSettings.exe ]===========================]LOG]!><time="10:18:33.343+240" date="02-26-2015" component="OSDNetSettings" context="" type="1" thread="3644"
    file="main.cpp:134">
    <![LOG[Command line: "osdnetsettings.exe" capture adapters:true scope:Global\{E7E5BB69-6198-4555-B5CA-6C46A2B5EB78}]LOG]!><time="10:18:33.343+240" date="02-26-2015" component="OSDNetSettings" context=""
    type="1" thread="3644" file="main.cpp:135">
    <![LOG[No adapters found with non-empty DNSDomainSuffixSearchOrder]LOG]!><time="10:18:33.484+240" date="02-26-2015" component="OSDNetSettings" context="" type="0" thread="3644" file="netwmiadapterconfig.cpp:408">
    <![LOG[Captured settings for adapter 1]LOG]!><time="10:18:34.875+240" date="02-26-2015" component="OSDNetSettings" context="" type="1" thread="3644" file="netsettings.cpp:99">
    <![LOG[OSDNetSettings finished: 0x00000000]LOG]!><time="10:18:34.875+240" date="02-26-2015" component="OSDNetSettings" context="" type="1" thread="3644" file="main.cpp:192">
    <![LOG[Process completed with exit code 0]LOG]!><time="10:18:34.875+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="commandline.cpp:1123">
    <![LOG[Installing boot image to hard drive]LOG]!><time="10:18:34.906+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootimage.cpp:622">
    <![LOG[Backing up existing boot system before trying to set up new boot system]LOG]!><time="10:18:34.906+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
    file="bootimage.cpp:645">
    <![LOG[BootLoader::backup: C:\, C:\_SMSTaskSequence\backup]LOG]!><time="10:18:35.109+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootloader.cpp:85">
    <![LOG[BootLoader::restore: C:\_SMSTaskSequence\WinPE, C:\]LOG]!><time="10:18:41.187+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootloader.cpp:382">
    <![LOG[Saving bcd store to C:\_SMSTaskSequence\WinPE\boot\BCD]LOG]!><time="10:18:41.734+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootconfigimplbcd.cpp:703">
    <![LOG[Executing command line: "C:\_SMSTaskSequence\WinPE\windows\system32\bootsect.exe" /NT60 SYS /MBR]LOG]!><time="10:18:42.500+240" date="02-26-2015" component="TSManager" context="" type="1"
    thread="1740" file="commandline.cpp:827">
    <![LOG[CreateProcess failed. Code(0x800700C1)]LOG]!><time="10:18:42.500+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="commandline.cpp:1018">
    <![LOG[Command line execution failed (800700C1)]LOG]!><time="10:18:42.500+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="commandline.cpp:1245">
    <![LOG[Failed to install boot image.
    Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="bootimage.cpp:682">
    <![LOG[Failed to install boot image PO100002.
    Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:840">
    <![LOG[Failed to reboot the system. Error 0x(800700c1)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:953">
    <![LOG[Failed to initialize a system reboot.
    Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:577">
    <![LOG[Fatal error is returned in check for reboot request of the action (Restart Computer in WinPE).
    Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:273">
    <![LOG[An error (0x800700c1) is encountered in execution of the task sequence]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:348">
    Thank
    Lourh

    I'm not entirely sure if this was fixed in the newer CUs, but have you seen this thread?
    https://social.technet.microsoft.com/Forums/en-US/041975df-a8a8-48cb-8d9f-0446c35210fe/sccm-2012-r2-boot-image-wont-load-in-windows-xp?forum=configmanagerosd
    It offers a couple of alternatives too (i.e., http://davejaskie.com/2014/04/03/installing-a-legacy-boot-image-in-sccm-to-support-xp-migrations/)
    Fausto

  • WLST command line utility "storeUserConfig()"  is not working for 12c OHS

    Hi All,
    I am facing issue with WLST command line utility with "*storeUserConfig()*" command.
    I have installed Standalone OHS 12c (Not managed OHS with WLS), configure and start the Node Manager.
    I start the WLST command line utility from : <MW_HOME>/ohs/common/bin/wlst.sh
    I connect node manager with : nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
    wls:/offline> nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    wls:/nm/base_domain> nmStart(serverName='ohs10', serverType='OHS')
    Starting server ohs10 ...
    Successfully started server ohs10 ...
    Now When I am running storeUserConfig(), it's giving me below error :
    wls:/nm/base_domain> storeUserConfig()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: storeUserConfig
    I also try with storeUserConfig('/scratch/12cORC/security/myuserconfigfile.secure', '/scratch/12cORC/security/myuserkeyfile.secure') which also give same error.
    I am not able to recognize this error. What should I need to do to create the User config file ?
    Please suggest me the solution.
    I am referring this doc : http://docs.oracle.com/cd/E15586_01/web.1111/e13813/reference.htm#
    Thanks,
    Amit Nagar

    It's probably a little late for the original poster, but in case anybody else stumbles on this thread (like me today), I found a workable solution to this problem:
    For a Standalone HTTP Server there exists in $domain_home/bin a command startComponent.sh or (on Windows) startComponent.cmd. This accepts as parameter the ComponentName which will typically be ohs1 and as second parameter storeUserConfig. Documentation on this can be found here:
    http://docs.oracle.com/middleware/1212/webtier/HSADM/getstart.htm#CHDJGIII (scroll down to
    4.3.2.3 Starting Oracle HTTP Server Instances from the Command Line).
    startComponent.sh ohs1 storeUserConfig
    Unfortunately this doesn't tell you where you'll find the config and key-File. However, on a second invocation I found that - at least on windows where I tested this - they get written into c:\users\<username>\.wlst so I'd expect them in the home directory on unix. After copying the files to a more common location, I was able to reference them the usual way (formatted for better readability):
    wls:/offline> nmConnect(userConfigFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-cfg-base_domain.props',
    userKeyFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-key-base_domain.props',
    host='localhost',
    port='5556',
    domainName='base_domain')
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    Best Regards
    Holger

  • Robohelp HTML command-line utility overwrites merged files in .hhp file with absolute paths. Any way to prevent this?

    I have a Robohelp 11 HTML project which uses merged CHM files. I have a help build script which compiles this project using the RH command-line utility. Whenever this runs, RH overwrites the names of the merged CHM files in the .hhp file to use absolute paths (even if the .hhp file is read-only!). I've searched Adobe forums and this appears to be a RH bug. In my case, it doesn't stop the project performing the merge, but it looks like it causes problems when searching the resultant parent CHM (topics matching the search simply don't show up in child projects), as the search cannot necessarily find the merged files referenced in the .hhp when someone performs the search on a different machine. I notice that if I compile via the RH UI, the .hhp entries are not overwritten. So, a workaround is to do the build manually. However, we'd like to automate our help build. Is there any way to prevent the command-line compiler overwriting the merge file entries in the .hhp?

    This was a problem with Rh9, see Item 13 at Using RoboHelp 9
    I haven't seen it reported since but maybe something at that link will help.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Types of Command Line Utility Projects in Xcode

    Hello. Question:
    There are five types of projects within the Command Line Utility section in Xcode. One is the Standard Tool project, which I know is written in C. Another is the C++ Tool, which is written in C++. Here's my question -- what language are the other three written in (Foundation Tool, CoreFoundation Tool, and Core Services Too)? If I understand correctly, the Foundation Tool project type uses Objective-C -- I found this interesting, because I thought Ojective-C only worked with Cocoa Apps with GUIs and what not. Wouldn't Objective-C be kind of wasted on a command line app (to some extent at least)? Also, if the Foundation Tool project does use Objective-C, then what language do the CoreFoundation and Core Services project types use?

    I don't think you'll get any errors. Those are just templates. You can use any kind of source code in any project.
    That's what I originally thought, but then I tried using Objective-C code in a Standard Tool project out of curiosity and it didn't work. Also, when you are creating a project, for the description under Standard Tool project, it says something like "creates a Standard Tool project written in C" and similar descriptions with other projects with other languages -- what's the point in having that if you can use any variation of C in any project? Also, what would be the point in having the different standards options (like we were discussing in another thread, \[-std=c99\] and what not) if any code can be used in any project? I mean, surely Objective-C and C++ specific code isn't part of the C89 or C99 standard, right? Just trying to understand how all this works...
    edit: I'm just going back and adding this now. I was re-reading over this post and I was thinking that maybe the answer to my question is that it depends on the file type for the source code -- could that be it? So in other words, you can use any kind of code within any project if you create a file that holds that kind of code, and a certain project template simply creates a project with that type of code file already created (so, in other words, a Standard Tool project written in C, for example, simply creates a template project for you with a .c source code file already added, nothing more -- is that right?). So, then, within a .c file, for example, you can only use C code, and within a .m file only C/Objective-C code, and so forth, right? If I've got the right idea with all that, then I think I understand; if not, then I'm still a bit confused. Sorry, I know this is probably incredibly basic, but I'm trying to learn.
    Thanks for all your answers, by the way, etresoft. Your help is very much appreciated.
    Message was edited by: Tron55555

  • Soft-restart of Java node by  using command line utility

    Hello,
    Could anyone advise whether there is a way to soft-restart the java node by using a command line utility (if there is one)?
    I would like to script to run in unix.
    Kind regards,
    Murad.

    Thank you for all your reply.
    Does Jcmon issue soft-restart?
    We have problem with Veritas Cluster. When there failover occurs, Java nodes appears to be online when we check from SMICM, but in fact it looses connection to the central instance. We have to issue a soft-restart for each java node to create connection again. It is a known bug and this only can be fixed by using replicated enqueue server. This only available in SP, which we can not apply right now. What I want to do is to create a script to automate the soft-restart which will be run just after failover.
    Thanks,
    Murad

  • Using the Metadata Loader Command Line Utility

    Hi ,
    Can anybody please let me know the steps involved for import and export of metadata uing the Metadata Loader Command Line Utility with small scripts as an example.
    Thanks in advance.
    Vinay

    I'll assume that command line utility = ombplus...
    using OMBPLUS, Here it is:
    OMBCONNECT my_user/My_password@host:port:SID
    OMBEXPORT TO MDL_FILE 'C:/temp/DELTA_RS52_LICC2.mdl' \
    FROM PROJECT 'NEW_ARCHITECTURE' \
    COMPONENTS ( \
    LOCATION 'TRG_NEW_ARCH_WORKAREA_LOC',\
    CONNECTOR 'TRG_WORKAREA_LIBOWNER_CONNECT', \
    ORACLE_MODULE 'TRG_WHOWNER', \
    TABLE 'CPF_VALID3', \
    TABLE 'CPF_VALID3_2', \
    TABLE 'CPF_VALID3_3', \
    TABLE 'CPF_VALID3_4', \
    MAPPING 'MAP_WA_CLAIM_DIM', \
    MAPPING 'MAP_WA_POLICY_DIM2_INS', \
    MAPPING 'MAP_WDC1_CLIENT_FOR_LIB', \
    FUNCTION 'UPD_WDC1_CLIENT_LIB', \
    FUNCTION 'VALIDATE_CHARGED_PREMIUM_1_F', \
    FUNCTION 'VALIDATE_CHARGED_PREMIUM_2_F', \
    FUNCTION 'VALIDATE_CHARGED_PREMIUM_3_F', \
    FUNCTION 'VALIDATE_WA_DRIVER_VEH_FACT_I', \
    PACKAGE 'INITIALIZATION', \
    ORACLE_MODULE 'TRG_WORKAREA', \
    TABLE 'AUPMGEN', \
    TABLE 'AUPMGEN_TR0', \
    TABLE 'WDC1_CLIENT_LICC', \
    TABLE 'WDC1_CLIENT_LICC_TEMP_UPD', \
    TABLE 'WG_CHARGED_PREMIUM_VALID', \
    FUNCTION 'GET_DT_TRX_TRANSACTION', \
    FUNCTION 'GET_OCC_OP_LKP', \
    PROCEDURE 'DISABLE_ENABLE_CONSTRAINTS', \
    PROCEDURE 'EXEC_WF_CPF_VALIDATIONS', \
    PROCEDURE 'EXEC_WF_DAUTO_DAILY', \
    PROCEDURE 'EXEC_WF_PER_GENDAT_DAILY', \
    PROCEDURE 'EXEC_WF_PER_GENTER_DAUTO', \
    PROCEDURE 'LOAD_PAST_FUTURE_CALENDAR', \
    PROCEDURE 'VALIDATE_CHARGED_PREMIUM_DS', \
    MAPPING 'MAP_AUPMCON_LIB', \
    MAPPING 'MAP_AUPMGEN_LIB', \
    MAPPING 'MAP_AUPMGEN_LIB_CPF', \
    MAPPING 'MAP_AUPMGEN_TR', \
    MAPPING 'MAP_AUPMGEN_TR0', \
    MAPPING 'MAP_AUPMGEN_TR0_CPF', \
    MAPPING 'MAP_AUPMGEN_TR0_CPF_PERF', \
    MAPPING 'MAP_AUPMGEN_TR_CPF_PERF', \
    MAPPING 'MAP_AUPMVEH_LIB', \
    MAPPING 'MAP_AUPMVEH_LIB_CPF', \
    MAPPING 'MAP_CHARGED_PREMIUM_FACT_TR1', \
    MAPPING 'MAP_IA_POLICY_TERM_LKP_2', \
    MAPPING 'MAP_SA_POLICY_SALES_CHAN_LIB', \
    MAPPING 'MAP_SIPGED_DAILY_2_LIB', \
    MAPPING 'MAP_SIPGED_LIB', \
    MAPPING 'MAP_SIPGED_TR', \
    MAPPING 'MAP_SIPRES_LIB', \
    MAPPING 'MAP_SIPVES_LIB', \
    MAPPING 'MAP_WA_CLAIM_FACT_TR1', \
    MAPPING 'MAP_WA_DRIV_VEH_FACT_TR1', \
    MAPPING 'MAP_WDC1_CLIENT_LIB', \
    MAPPING 'MAP_WDC1_CLIENT_LICC_LAST_VERS', \
    PROCESS_FLOW_MODULE 'NEW_ARCH_WF', \
    PROCESS_FLOW_PACKAGE 'DAUTO', \
    PROCESS_FLOW_PACKAGE 'WAUTO') \
    OUTPUT LOG TO 'C:/TEMP/DELTA_RS52_LICC2_exp.log'
    #now to import,still with OMBPLUS,
    OMBCONNECT my_user/My_password@host:port:SID
    OMBIMPORT MDL_FILE 'C:/temp/DELTA_RS52_LICC2.mdl' USE UPDATE_MODE OUTPUT LOG TO 'C:/temp/DELTA_RS52_LICC2_imp.log'
    Hope this is what you wanted
    Michel

  • OIM11g R1: Exporting Objects using command line utility

    Hi All,
    Is it possible to export/import OIM objects using command line utility (As per my requirement, I am not suppose to use the OIM Deployment Manager from UI)?
    I am looking for something like oimtool if provided OOTB by oracle.
    Regards,
    Sunny
    Edited by: 968494 on Nov 2, 2012 3:35 PM

    Sunny,
    What kind of objects do you want to export/import. I am asking because we have such command tool with Weblogic and OIM. Check this out:
    1-http://itnaf.org/2012/09/23/how-to-import-and-export-metadata-from-oim-mds/
    2-ttp://docs.oracle.com/cd/E14571_01/doc.1111/e14309/utils.htm
    I hope this helps,
    Thiago Leoncio.

  • Execute command lines from Xcelsius 2008

    Hello,
    Is there any possible way to execute command lines from Xcelsius 2008 swf?
    Thank you.

    Hi,
    You cannot call out to command-line from a Flash SWF, it is sandboxed so does not know how to do any of that.
    One (complicated) option would be to write your own app to embed the SWF into, a real app can then call out to do whatever you want, then you just have to get the SWF to communicate with your app using External Interface, it would be a lot of work.
    Regards
    Matt

  • OEM 12c COMMAND LINE Utility.

    Team,
    I have 11g database which we are taking the cold backup on Wed and Saturday every week and configured OEM12c agent in the server. I am getting the OEM alerts during the planned db outage.
    I don't find any blackout command line utility for blocking the alert during particular day and time.
    Can you please share the commands if have any.
    Example :
    PROMPT> emctl start blackout bk1 db1 db2 ldb2:oracle_listener -d 5 02:30
    The blackout starts immediately and will last for 5 days 2 hours and 30 minutes.
    Thanks in advance for your help.
    Thanks,
    Robin

    Hi,
    Scheduled blackouts are not possible using emctl (agent side) blackouts.  They are however possible using the UI or EM CLI
    http://docs.oracle.com/cd/E24628_01/em.121/e17786/cli_verb_ref.htm#BABICICB
    Would you be able to switch to EM CLI or the UI instead?
    Thanks, Mark.

  • Using command-line util for wrapping SQL Server stored procedure

    Hi,
    The Database Adapter does not have native support for stored procedures in SQL Server. Hence, I intend to use the command-line utility that is described briefly in the DB Adapter guide, i.e. the thing that is invoked using "java oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts <property file>".
    Has anyone used this before? And did you have any success?
    Any help appreciated.
    Thanks, Sjoerd

    Yet another correction ...
    My JD is installed to D:\JDS10gSOA; so ...
    I created a bat file with the following jars listed:
    java -cp D:\JDS10gSOA\integration\lib\DBAdapter.jar;D:\JDS10gSOA\integration\lib\bpm-infra.jar;D:\JDS10gSOA\integration\lib\orabpel.jar;D:\JDS10gSOA\lib\xmlparserv2.jar;D:\JDS10gSOA\lib\xschema.jar;D:\JDS10gSOA\toplink\jlib\toplink.jar;D:\JDS10gSOA\integration\lib\connector15.jar;D:\JDS10gSOA\jars\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts %1
    Note the \jars\ folder I created and copied the MS jdbc driver in there; it's needed in a couple of other places as well.
    A sample properties file:
    ProductName=Microsoft SQL Server
    DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
    ConnectionString=jdbc:sqlserver://localhost\\SQLEXPRESS;databaseName=helloworlddb;user=hello;password=hello
    ProcedureName=helloWorldProc
    ServiceName=srv_helloWorldProc
    DatabaseConnection=eis/DB/helloworlddb
    Hope this helps.
    I have to agree the document is very vague on this; no good script or anything from oracle on getting this done - even though it's an integral part of SOA in my opinion.
    Regards

  • Asus Laptop (G1, G2, G5, G70, G71) OLED display: Command line utility.

    Greetings.
    Yep. You did read the subject line properly. There is a new command line utility in town.
    To be more exact, there are two small utilities that I have designed for this little OLED -display. (Links at the end of this post)
    To anyone still in confusion, let me show you:
    Some Asus laptops comes with this neat little status display, but few softwares around to utilize them.
    Specially when it comes to the Linux operating system.
    What I've made here, is a simple and easy to use command line utility that communicates with the display.
    But it doesn't stay at "simple". It also has a few advanced features, which is described in detail in the README and their --help sections.
    With this utility and a bunch of simple pixmap images, anyone can easily create messages, animations and transitions without the need of deep knowledge of the underlying system.
    This makes it perfect for boot animations, event updates, status changes and alike.
    Short video-demostration:
    http://www.youtube.com/watch?v=2i8Twa4h_iI
    X11 Pixmap Format
    To get starting, you need a set of pictures.
    You should, and is encouraged to create these yourself, and if you do, please share your creations with us here. I will update a list of your creations in this post accordingly.
    These utilities can, at the moment, only read xpm images. Most drawing programs can handle this today so hat shouldn't be a problem.
    There is a preferred format, but other formats are possible:
    *  Colordepth: 1 bit (Monocrome)
    *  Height: 32 pixels
    *  Width: 128 pixels (for G1 and G2) or 256 pixels (for G5, G70, G71 ...)
    There are a few prepackaged XPM images that can be used any way you see fit.
    GIMP is the tool I used to create the pictures and animations.
    Installation.
    To install: Read INSTALL. Keep in mind: 'bin' and 'conf' folder relies on eachother, so they should stay together. I plan to improve this, but that's another story.
    Permissions: Again. Read the 'INSTALL' file. You need rw-access to two class nodes:
    /sys/class/asus_oled/oled_1/picture
    /sys/class/asus_oled/oled_1/enabled
    Doesn't exist??? ... did you read the INSTALL and README?... aw... well.. here's a hint:
    # modprobe asus_oled && ls -l /sys/class/asus_oled/
    The module should already exist, and if you're running Arch Linux on that laptop with the default kernel, it's already loaded.
    The modules comes with the Linux kernel itself (Staging area). Nothing else needed to be done. Isn't that awesome?
    If you happen to run a custom kernel, reconfigure it and activate 'asus_oled' as a module. Recompile, install and eat icecream.
    (Icecream part is very important)
    Quickstart.
    Once you created your awesome xpm image, you want it to live on the OLED display. This is the command:
    $ asus_oled-ctl --static-picture My-Awesome-128x32-Pic.xpm
    Explanation: '--static-picture' just simply converts and loads a picture onto the display and exits. Nothing fancy really.
    You haven't created a picture yet? .... horrible drawing skills? ...
    Well ... *sigh* ... Try one of the prepacked pictures then. 128x32_archlinux-logo1.xpm should suffice.
    You find it under pictures/logos/
    Success? Yay! Have some more icecream!
    Next thing you might be interested in, is animations.
    Animations is pretty much just a series of static images inserted one after another in a rapid manner.
    So get to it and convert the whole Star Wars saga to a series of 128x32 monocrome XPM pictures...
    ... or just make a short animation of your liking... and SHARE IT!
    Need a neat command to show your animation skills on the display? Here it is:
    (NOTE: There's a bug that causes this utility to have serious trouble with spaces in paths and files. I'm aware of it. Just avoid spaces for now... )
    $ asus_oled-ctl --cycle 50,10 path/to/my/awesome/animation/*
    Explanation: '--cycle' cycles through all the pictures it's given. The argument '50,10' tells it to delay each frame 50 milliseconds, and loop through them 10 times.
    If you instead wanted one loop instead of 10 and decrease the speed to 100 milliseconds per frame? Just change it accordingly:
    $ asus_oled-ctl --cycle 100,1 path/to/my/awesome/animation/*
    Still a bit confused on how the animations should be set up?
    Have a look at the prepacked examples found under pictures/animations/
    Hey! why not test one of the examples out:
    $ asus_oled-ctl --cycle 50,10 pictures/animations/Arch-ripple_loop/*
    Want it to be endless? Set the loop part to 0, and it will loop forever, or until you run out of power. (You can hit CTRL+C to interrupt)
    $ asus_oled-ctl --cycle 50,0 pictures/animations/Arch-ripple_loop/*
    You might have noticed it took a few seconds before the animation started from the point you hit [Enter]. (And that it took some CPU to do it)
    It's because the utility have to convert the images to a more fitting format before it goes ahead.
    Fortunately, there's a remedy to that delay. It's called cached slots. What it means is that one can tell the utility to store the converted animation data in a storage slot for later use.
    Here's how to do it:
    Step 1: Convert your awesome animation, and store it into a named cache-slot called 'MyAwesomeAnimation'.
    $ asus_oled-ctl --generate-cache MyAwesomeAnimation path/to/my/awesome/animation/*
    It will crunch your pictures for a few seconds, and then exit normally.
    Wait.... WHAT??? ... You did convert Star Wars whole saga?... Wow!!!... That will take an eternity to crunch through... =O
    Once it's done (Hopefully this site still lives when it is) we can now see what cache slots we have in the storage:
    $ asus_oled-ctl --show-cache
    There's your Star Wars saga... *erh*.. awesome animation. If you did a full install, you might notice a few other slots too. You can test em out if you'd like.
    Now to play that cached animation:
    $ asus_oled-ctl --cycle 50,5,MyAwesomeAnimation
    Notice how the animation starts almost instantly this time. That's what cache is for.
    Want to delete any of thos annoying and horrible slots?
    $ asus_oled-ctl --delete-cache MyAwesomeAnimation
    Now a few other commands to try out and discover what they do:
    $ asus_oled-ctl --power off
    $ asus_oled-ctl --power on
    $ asus_oled-ctl --clear
    $ asus_oled-ctl --static-picture pictures/devel/ASUS-logo_reversed.xpm
    $ asus_oled-ctl --help
    $ xpm2asus_oled pictures/logos/128x32_archlinux-logo1.xpm
    $ xpm2asus_oled --output ansi pictures/logos/128x32_archlinux-logo1.xpm
    $ xpm2asus_oled --help
    I hope that I've introduced the utilities for you and awaken your interest in this otherwise useless little display with a neat ASUS-logo on it.
    Now get on to it and create some awesome logos and animations for us all to use.
    I will update this utility every now and then, and hopefully include some of your animations with the package.
    The community's contribution list:
    ... *tumbleweed in the wind* ...
    Links
    Download: https://bitbucket.org/SysGhost/asus-ole … .1.tar.bz2
    Documentation (subject to change): https://bitbucket.org/SysGhost/asus-ole … /wiki/Home
    git: https://bitbucket.org/SysGhost/asus-ole … tility.git
    Read README for details. (It's named README for a reason)
    Update:
    Version 0.1.2 - Minor bugfixes.
    Upcoming: 0.2 - Rewritten in python. Twice as fast.
    Last edited by SysGhost (2012-11-23 14:51:16)

  • Oraxsl command line utility - xslt transform difficulty

    I am having trouble understanding the documentation for the ORAXSL command line utility interface, as follows:
    I have two sheets [XSLT transformation sheets], token.xsl and loop.xsl, which I am trying to transform into a single xsl sheet using ORAXSL command line.
    token.xsl transforms a string of comma-separated values into single tokens (<value> elements, each of them contains one value).
    loop.xsl expands special iteration elements (<loop:for> and <loop:while>) into recursive template calls.
    Used together, I can parse a node containing comma separated values into an xml document with each value in its own node.

    Hi
    This is very simple (to the best of my knowledge)
    sqlplus userid/password@hoststring @pl_sql_file_name.ext [arg1] [arg2] [arg3]
    sqlplus - to invoke oracle
    userid - is the login id into oracle db
    password - is the password
    hoststring - is the ORACLE_SID
    pl_sql_file_name.ext - is the pl_sql file you wish to run
    arg1, arg2, arg3 - the arguments that you may be refering in the pl_sql script. arg1 refers to &1 in your script and arg2 refers to &2 in your script and arg3 refers to &3 in your script.
    Have fun!
    Good Luck
    null

Maybe you are looking for

  • Two copies of the same mail folders / Problem with TimeMachine backup

    I have two copies of the same IMAP mail folders in my library 1. ~/Library/Mail (actual version) 2. ~/Library/Mail/V2 (old version) I guess this is the reason why my TimeMachine does not backup the emails (it only backups the folder with only one ver

  • I can't drag and drop files into iTunes - any ideas?

    As I often do, I went to drag four new files into a playlist in iTunes and suddenly they will not go in.  I just get that circle with a diagonal line across indicating that this is not possible.  Lately iTunes has been giving me all sorts of problems

  • Home screen and open apps

    Some thoughts/suggestions after playing with Passport for two days: - Home Screen:  confusion of "home screeen":  in browser "Add to Home Screen".  it refers to the first left scroll of "Open Apps" screen. But the mini icon at the bottom of the scree

  • Vendor currency change not reflected in shopping cart

    Hello All,   I have changed the vendor currency from foreign currency to local currency(like GBR to INR) in ECC system. After that I have created a shopping cart in SRM. The value of the shopping cart in SRM is in local currency. When the PO is creat

  • Question related to DB patching of RAC from 10201 to 10205

    Hello, I have the task of patching a RAC environment from 10201 to 10205 on linux x86_64, as per the README for the patch (#8202632) I have to first apply the patch to 1.Clusterware. 2.Oracle database homes. I am a bit new to patching RAC databases ,