Executing multiple command lines in command prompt (windows)

Hi,
I am currrently using the command prompt in the windows to try to send a command to the microcontroller that is connected through TCP connection.
I am able to use the normal cmd.exe to send the command but am unable to send all the command successfully using labview. 
The Vi. that I am using the the system exec.vi found in labview connectivity section. 
Basically what I want to send is "telnet A1" in the cmd.exe to establish connection to the microcontroller, followed by "FOR A1 100 GO" which will be intepreted by the microcontroller to make the necessary motion. But currently, the problem is that I can only establish connection using the system exec.vi but am unable to send the second part of the message "FOR A1 100 GO". 
My command line i tried typing is cme.exe /K telnet A1 & FOR A1 100 GO. it seems that labview is only able to execute the first command part. Is there any other alternatives? 
Thanks everyone for your help. 
Solved!
Go to Solution.

Hi,
Thanks for the help, the picture shows 1 of the error which state Error 56, the error occurs occasionally whenever I have used the command prompt to send a message to the microcontroller.
Alternatively, there are times when no errors occur but my microcontroller does not move as well. It does move if I were to send the command through the cmd prompt.
And I have attached a picture of my program as well. I am currently using Labview 2010 32bit. Thanks.
Jh
Attachments:
TCP Connection.jpg ‏170 KB
Error56.png ‏222 KB
Picomotor_App New v3.0.vi ‏38 KB

Similar Messages

  • Can you execute a class file without invoking the command line java command

    I am running java on a Windows XP equipped machine, and I am wondering if it is possible to execute a class file by double clicking the file icon, or can it only be done via command line. So far I have been unsuccessful in my attempts - I tried associating the class file with the java executable in my JRE directory, but that didn't work.
    Many thanks,
    -Stile

    nope, can't be done, by design... microsoft recognised java as threat to the empire very early on in the peace.... but you can write a batch file to execute myprogram.class called myprogram.bat and stick it in your PATH.
    keith.

  • Command Line Disk Share with Windows

    I am running Solaris 10 (SunOS 5.10) without the GUI interface. I cannot, therefore, run the Solaris Management Console.
    How do I share my disk with Windows systems on the same network using the command line?

    you can use samba for sharing its comes with solaris 10 , or use solaris 10 as nfs server and use PCNFS on windows end to mount the disk
    in solaris most of things dont require GUI , thats its beauty :)
    regards

  • Create .txt empty file After Message Processing Command Line Linux command

    Hi All,
    An empty .txt file has to be created in FTP location(FTP loc c:\xyz\Customer20082910.txt) only after the .dat file has been created(FTP loc c:\xyz\Customer20082910.dat)
    Note:.dat has the actual data and .txt is an empty file and is created only after .dat is created
    I know that .txt empty file can be created using the After Message Processing Command Line...
    But confused which command to be given such that it will be created in the FTP location(c:\xyz\Customer20082910.txt)
    Can any one please give the Linux command for it...
    Regards,
    Sridhar

    Hi Aamir,
    Thanks for the suggestion, I will ask my client to create a shell script at FTP server...
    And one more question,
    This is reverse side , now the .dat file is to be picked only if .txt exists at the FTP server (scenario File > XI>SAP) (earlier was SAP>XI>File)..
    So please can you suggest for this also...
    How can i check for the .txt and pick corresponding .dat file...
    i had posted question long back
    Need to pick .TXT file only if .CTL file is available
    Regards,
    Sridhar

  • The command line 'route' command is broken - what alternatives are there?

    The 'route' command appears to be broken in Mavericks ( now also in 10.9.4 ). It does update that tables, so netstat -r makes it seem that it has worked. However, browsers, pings and trace routes all give errors such as 'out of memory'.
    So, what can I do to set up working alternatives to the standard routing?
    There certainly is some routing capability, and the ability to change it - if you use the OS/X server and set up a VPN, you can set up routing there. So it should be possible to access it through the command line somehow.
    Any suggestions gratefully received.
    I really thought that this would be easy, but it's turned into quite a headache.

    This isn't a great fix but it's helped us out. We created an autoit script to edit the firefox.js file found in program files\mozilla firefox\default\pref. It searches for the line "pref("app.update.auto", true);" and changes it to "pref("app.update.auto", false);". It's a pain but it's the best we could come up with.
    Note: We updated to 3.6.14 and even with the setting above FF still did an auto update to 3.6.15.

  • Run adobe cs3 updater remotely via command line unix command?

    is there a way to run the adobe updater from the command line for adobe cs3? I have a bunch of machines that already have cs3 installed, and I would like to be able to use ARD to "send unix command" and have the installer run and update the relevant apps?
    Thanks in advance...
    PS-is it me or is this forum ridiculously slow on safari? Sheesh!

    is there a way to run the adobe updater from the command line for adobe cs3? I have a bunch of machines that already have cs3 installed, and I would like to be able to use ARD to "send unix command" and have the installer run and update the relevant apps?
    Thanks in advance...
    PS-is it me or is this forum ridiculously slow on safari? Sheesh!

  • Starting command line exec without dos window...

    I'm trying to start a console window application under my java swing application with the Runtime.exec(cmd) function.
    A dos window appear during the execution of the application. How to remove the screen echo ?
    Thanks
    SEB

    Hi ollie lord and thank you for your suggestion.
    I tried to use a *.bat file instead but the result was the same. I tried to use the word "start" in the command but nothing more.
    My .bat file is simple:
    start myprogram or myprogram
    ...where myprogram.exe is a win32 console application from Visual C++.
    Is there any option in function Main() in C++ to remove the dos console ?
    I head about the JNI tech. Is it a solution ?
    Thanks
    SEB

  • How do you either set "Show More Tiles" or Start Screen rows via command line or script for Windows 8.1?

    Is there a method to change the Start Screens number of rows (similar to Windows 8.0's use of the Explorer\Scaling\MonitorSize in registry). Possibly by forcing the switch for "Show More Tiles" via script etc? This is to enable the device with
    Windows 8.1 to be built using a deployment methodology like SCCM and have the Tiles correctly configured as required for a standard look and feel across devices. I do not know why all these switches are not represented in either WMI or the registry to enable
    the customization of look and feel out of the box for enterprise deployments.
    Thanks for any assistance possible.

    Hi,
    You can try steps in this article.
    How to Change Number of Apps Tile Rows on "Start" Screen in Windows 8 and Windows 8.1
    http://www.eightforums.com/tutorials/2690-start-screen-metro-apps-change-number-rows-windows-8-a.html
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
    Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
    completely understand the risk before retrieving any software from the Internet.
    Hope this could be helpful.
    Kate Li
    TechNet Community Support

  • Command line Quicktime encoding for windows?

    I think you can script quicktime to encode on the Mac using applescript, but can you do the samething for windows?
    Maybe something like:
    c:\quicktime.exe /profile /inputfile /outputfile
    and viola! Out comes my encoded files!
    I'd love to automate my encoding process but I can't seem to find a way to do it.

    Hi,
    You can try steps in this article.
    How to Change Number of Apps Tile Rows on "Start" Screen in Windows 8 and Windows 8.1
    http://www.eightforums.com/tutorials/2690-start-screen-metro-apps-change-number-rows-windows-8-a.html
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
    Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
    completely understand the risk before retrieving any software from the Internet.
    Hope this could be helpful.
    Kate Li
    TechNet Community Support

  • Afterfx command line "restores" maximized window - any way to duplicate ExtendScript invocation?

    Hi all,
    I am controlling After Effects CC from another application by invoking JavaScript files from the command line. But the command *always* restores the maximized window of After Effects. That is, if the After Effects application is maximized, it always *restores* it, every time I invoke the JavaScript file through the command line (e.g. through Windows cmd prompt or through my application). When I execute the same JavaScript file through ExtendScript IDE, it doesn't do this erronous behaviour.
    For example: "AfterFx.exe -r C:\path\showDialog.jsx"
    Contents of showDialog.jsx:
    alert("Showing Dialog from JSX file");
    My question is: Is there *any way* to mimic what ExtendScript does to invoke JavaScript files?
    From listening on Windows processes, it seems that ExtendScript tacks on some JavaScript code, dynamically, to do the execution (i.e. couldn't trace any command line processes/arguments). But I can't seem to figure out what exact JavaScript code it invokes. ExtendScript also seems to be working via Bridge.
    I get the same "restore window" behaviour when I try to use "-s" argument with the JavaScript expression passed as a string argument or if I use "AfterFx.com" instead of "AfterFx.exe". I couldn't find any documentation for what command line parameters are supported for AfterFx (other than "-r" and "-s") and what Extend Script might be doing exactly to invoke the .jsx files. I managed to take a peek at the executable binary of AfterFx.exe (through a hex editor) and noticed the following switches.
    -rquiet, -noerr, -noui, -debug, -livelink, -selflink, -headlessonly, -rquiet, -rq, -mp
    But I couldn't get the "window restoring" behaviour to stop with any of the parameters.
    Any advice will be really appreciated.
    Thanks.

    Hi,
    Thanks again for your comments. I tried with PsExec just now but no luck still. The only useful argument parameter in PsExe seems to be:
    -d
    Don't wait for process to terminate (non-interactive).
    But the same behaviour happens. I tried with "-e" as well (separately and combined with "-d").
    I also tried a few command line argument options with "start" command, on the Windows Command prompt. For example:
    "start /MAX AfterFx.exe -r C:\path\file.jsx" <-- supposed to start the application in the maximized state
    "start /b AfterFx.exe -r C:\path\file.jsx" <-- supposed to start the app without a creating a new window
    But no luck still . Tried various combinations of the above two arguments as well.
    Seems like Adobe After Effects explicitly does something weird to snap the application *out* of the MAXIMIZED state, if the executable is invoked (either via command line, with or without arguments or directly from start menu/GUI items). I don't know why they would do this though. I also wonder whether this is simply a bug in their implementation of Adobe After Effects CC on Windows 7.
    Is there any way to MAXIMIZE Adobe Effects Effects through their JavaScript API? I am wondering whether I can explicility check/set the window to be maximized in my invoked script, to fix this behaviour.
    Thanks.

  • 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

  • Receiver file adapter command line

    hi,
    i am just wondering how to use command line on receiver file adapter.
    i am not clear how to use this.
    please modify on the following command!
    anyway, i have to call java application after put some files by receiver file adapter.
    cmd.exe %Fjava ./javacalltest
    it did not work..
    please guide me.
    Command Line
    An operating system command specified here is executed before or after a file has been successfully processed. The default value is an empty character string (no command).
    When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
    %f (file name)
    %F (absolute file name including path)

    Hi Ogawa and Laurence,
    Have look at :: /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    1)Windows batch Commands::
    http://labmice.techtarget.com/articles/batchcmds.htm
    2)Linux:
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Note:: First try using the comands on O.S if they work then only use them in Adapters.
    Hope it will help.
    regards
    Piyush
    Pl:reward some points if it is usefull.

  • Java command line in File adapter

    Hi all,
    In my receiver file adapter (FTP), I want to use the option "Run operating system command after message processing".  In the command I want to execute a java class.  Can anybody have information about how to do that ?
    My command line in the following : "java myPackage.MyClass %F". This command line works fine on my machine but I don't know how to do when on XI File Adapter (where to set the jar file, ...)
    Thanks in advance,
    Laurence

    Hi Laurence
    XI Command Line Functions::
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    1)Windows batch Commands::
    http://labmice.techtarget.com/articles/batchcmds.htm
    2)Linux:
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    regards
    Piyush
    Pl: reward points if it is helpful.

  • Command Line Scheduling Failing

    When I attempt to use command line scheduling for FR I am receiving the following error:
    [2012-06-04T15:18:03.651-04:00] [EPMFR] [ERROR] [] [oracle.EPMFR.core] [tid: 10] [ecid: 0000JUsvg2YB9Dc_phT4iY1FnGbf000000,0] [SRC_CLASS: com.hyperion.reporting.registry.FRSystem] [SRC_METHOD: getObjectFromURL] [[
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:249)
         at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
         at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
         at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
         at com.hyperion.reporting.registry.FRSystem.getObjectFromURL(Unknown Source)
         at com.hyperion.reporting.registry.FRSystem.lookupHsServer(Unknown Source)
         at com.hyperion.reporting.scheduler.ExecuteBatch.<init>(Unknown Source)
         at com.hyperion.reporting.scheduler.ExecuteBatch.main(Unknown Source)
    [2012-06-04T15:18:03.698-04:00] [EPMFR] [ERROR] [] [oracle.EPMFR.core] [tid: 10] [ecid: 0000JUsvg2YB9Dc_phT4iY1FnGbf000000,0] [SRC_CLASS: com.hyperion.reporting.registry.FRSystem] [SRC_METHOD: lookupHsServer] [[
    com.hyperion.reporting.util.HyperionReportException: Could not connect to the server.
    Please make sure that the server is running as specified in the logon dialog (including port number if not default).
         at com.hyperion.reporting.registry.FRSystem.lookupHsServer(Unknown Source)
         at com.hyperion.reporting.scheduler.ExecuteBatch.<init>(Unknown Source)
         at com.hyperion.reporting.scheduler.ExecuteBatch.main(Unknown Source)
    [2012-06-04T15:18:03.713-04:00] [EPMFR] [ERROR] [00032] [oracle.EPMFR.core] [tid: 10] [ecid: 0000JUsvg2YB9Dc_phT4iY1FnGbf000000,0] [SRC_CLASS: com.hyperion.reporting.scheduler.ExecuteBatch] [SRC_METHOD: <init>] [arg: D:\Oracle\MIDDLE~1\EPMSYS~1\products\FINANC~1\bin\testact2.xml] Error executing batch: D:\Oracle\MIDDLE~1\EPMSYS~1\products\FINANC~1\bin\testact2.xml
    [2012-06-04T15:18:03.713-04:00] [EPMFR] [ERROR] [] [oracle.EPMFR.core] [tid: 10] [ecid: 0000JUsvg2YB9Dc_phT4iY1FnGbf000000,0] [SRC_CLASS: com.hyperion.reporting.scheduler.ExecuteBatch] [SRC_METHOD: <init>] [[
    com.hyperion.reporting.util.HyperionReportException: ; nested exception is:
         java.lang.Exception: Unable to connect to HSServer
         at com.hyperion.reporting.scheduler.ExecuteBatch.<init>(Unknown Source)
         at com.hyperion.reporting.scheduler.ExecuteBatch.main(Unknown Source)
    Caused by: java.lang.Exception: Unable to connect to HSServer
    Steps that I have taken to reproduce this error*
    1. Navigate to Workspace and export a successful job from the Batch Scheduler.
    2. Encode a password using the encodepassword.cmd
    3. Place this password in the .xml that was produced earlier along with the correct username and a reportserver.
    4. Launch command line via command prompt with the following syntax: schedulebatch mybatch.xml http://myserver:19000
    Not sure what else I am doing wrong...Thanks for the help!

    This batch did run successful from workspace. Thanks for your help.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <BATCH_JOB_OBJECT AUTHOR="hypadmin" BATCH_JOB_ID="" BATCH_JOB_NAME="testact" BATCH_LOCALE="en_US" BATCH_NAME="/Activities/Activities" BOOKS_USE_BATCH_POV="Yes" DELETE_BATCHJOB_AFTER_SUCCESSFUL="No" DESCRIPTION="" REPORT_SERVER_NAME="myserver" UNSAVED_BATCH="No">
    <RUN_OPTIONS FREQUENCY="2" RUN_IMMEDIATELY="Yes" START_DATE="Thursday, May 31, 2012 3:31:25 PM EDT"/>
    <NOTIFICATION>
    <EMAIL FAILURE_MESSAGE_BODY="" FAILURE_RECIPIENTS="" FAILURE_SUBJECT="" MESSAGE_BODY="" RECIPIENTS="" SENDER="[email protected]" SUBJECT=""/>
    <PDF_ATTACHMENT BATCH_EMAIL_MSGBODY="See Attached Reports" BATCH_EMAIL_MSG_SUBJECT="See Attached Reports" BATCH_RECIPIENT_LIST="[email protected]" EMAIL_INDIVIDUAL_PDF="No" SEND_ATTACHMENT_EMAIL="Yes"/>
    </NOTIFICATION>
    <JOB_STATUS CURRENT_STATUS="0"/>
    <BURSTING_OPTIONS BURSTING_DEFAULT_OBJECT_NAME="" BURSTING_DEFAULT_SUBFOLDER_NAME="" BURSTING_ENABLED="false" BURSTING_FILE_PATH=""/>
    <JOB_OBJECT OBJECT_ID="0">
    <DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="AAAAvEfb7J4pV5KC09tlhwG39w==" DS_USER_NAME="adminuser"/>
    <HR_USER_CREDENTIALS HR_PASSWD="AAAAvEfb7J4pV5KC09tlhwG39w==" HR_USER_NAME="adminuser"/>
    <OUTPUT_OPTIONS>
    <HTML VALUE="No"/>
    <MHTM VALUE="No"/>
    <PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
    <SAVE_AS_SNAPSHOT VALUE="No"/>
    <PRINT VALUE="No"/>
    </OUTPUT_OPTIONS>
    <USER_POV>
    <ELEMENT>
    <KEY NAME="26106979_126a8704b24_-6883" REF_COUNT="2"/>
    <POV ALIASTABLE="Default" DATASOURCE_DETAILS=" dsname=Activity server=BCESSAPP01 app=Activity db=Activity type=Essbase" DATASOURCE_ID="26106979_126a8704b24_-6883" DIMCOUNT="9" ORGBYPERIOD_ENABLED="0" ORGBYPERIOD_PERIOD="" ORGBYPERIOD_SCENARIO="" ORGBYPERIOD_YEAR="" REFRESH_DESC="0" RELATEDCONTENT_CHANGE="0" SHOW_ALIAS="0" SHOW_DIMNAME="1" SHOW_MEMBERDESC="0" SHOW_MEMBERNAME="1" VERSION="7.3">
    <DIMENSION DISABLED="0" HIDDEN="0" NAME="Accounts">
    <METADATAEXPRESSION VALUE="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;COMPOSITEOPERATION TYPE=&quot;MemberQuery&quot;&gt;&lt;OPERATION TYPE=&quot;Select&quot;&gt;&lt;MULTIVALUE&gt;&lt;STRING&gt;Name&lt;/STRING&gt;&lt;/MULTIVALUE&gt;&lt;STRING&gt;Accounts&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;COMPOSITEOPERATION TYPE=&quot;Filter&quot;&gt;&lt;OPERATION TYPE=&quot;Member&quot;&gt;&lt;STRING&gt;BAYCARE&lt;/STRING&gt;&lt;STRING&gt;Accounts&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;/COMPOSITEOPERATION&gt;&lt;/COMPOSITEOPERATION&gt;"/>
    </DIMENSION>
    <DIMENSION DISABLED="0" HIDDEN="0" NAME="AC Periods">
    <METADATAEXPRESSION VALUE="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;COMPOSITEOPERATION TYPE=&quot;MemberQuery&quot;&gt;&lt;OPERATION TYPE=&quot;Select&quot;&gt;&lt;MULTIVALUE&gt;&lt;STRING&gt;Name&lt;/STRING&gt;&lt;/MULTIVALUE&gt;&lt;STRING&gt;AC Periods&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;COMPOSITEOPERATION TYPE=&quot;Filter&quot;&gt;&lt;OPERATION TYPE=&quot;Member&quot;&gt;&lt;STRING&gt;Dec YTD&lt;/STRING&gt;&lt;STRING&gt;AC Periods&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;/COMPOSITEOPERATION&gt;&lt;/COMPOSITEOPERATION&gt;"/>
    </DIMENSION>
    <DIMENSION DISABLED="0" HIDDEN="0" NAME="Amount Type">
    <METADATAEXPRESSION VALUE="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;COMPOSITEOPERATION TYPE=&quot;MemberQuery&quot;&gt;&lt;OPERATION TYPE=&quot;Select&quot;&gt;&lt;MULTIVALUE&gt;&lt;STRING&gt;Name&lt;/STRING&gt;&lt;/MULTIVALUE&gt;&lt;STRING&gt;Amount Type&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;COMPOSITEOPERATION TYPE=&quot;Filter&quot;&gt;&lt;OPERATION TYPE=&quot;Member&quot;&gt;&lt;STRING&gt;Amount Type&lt;/STRING&gt;&lt;STRING&gt;Amount Type&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;/COMPOSITEOPERATION&gt;&lt;/COMPOSITEOPERATION&gt;"/>
    </DIMENSION>
    <DIMENSION DISABLED="0" HIDDEN="1" NAME="Category"/>
    <DIMENSION DISABLED="0" HIDDEN="0" NAME="Activity">
    <METADATAEXPRESSION VALUE="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;COMPOSITEOPERATION TYPE=&quot;MemberQuery&quot;&gt;&lt;OPERATION TYPE=&quot;Select&quot;&gt;&lt;MULTIVALUE&gt;&lt;STRING&gt;Name&lt;/STRING&gt;&lt;/MULTIVALUE&gt;&lt;STRING&gt;Activity&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;COMPOSITEOPERATION TYPE=&quot;Filter&quot;&gt;&lt;OPERATION TYPE=&quot;Member&quot;&gt;&lt;STRING&gt;CAP MEASE&lt;/STRING&gt;&lt;STRING&gt;Activity&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;/COMPOSITEOPERATION&gt;&lt;/COMPOSITEOPERATION&gt;"/>
    </DIMENSION>
    <DIMENSION DISABLED="0" HIDDEN="0" NAME="Organization">
    <METADATAEXPRESSION VALUE="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;COMPOSITEOPERATION TYPE=&quot;MemberQuery&quot;&gt;&lt;OPERATION TYPE=&quot;Select&quot;&gt;&lt;MULTIVALUE&gt;&lt;STRING&gt;Name&lt;/STRING&gt;&lt;/MULTIVALUE&gt;&lt;STRING&gt;Organization&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;COMPOSITEOPERATION TYPE=&quot;Filter&quot;&gt;&lt;OPERATION TYPE=&quot;Member&quot;&gt;&lt;STRING&gt;Organization&lt;/STRING&gt;&lt;STRING&gt;Organization&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;/COMPOSITEOPERATION&gt;&lt;/COMPOSITEOPERATION&gt;"/>
    </DIMENSION>
    <DIMENSION DISABLED="0" HIDDEN="0" NAME="AC Years">
    <METADATAEXPRESSION VALUE="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;COMPOSITEOPERATION TYPE=&quot;MemberQuery&quot;&gt;&lt;OPERATION TYPE=&quot;Select&quot;&gt;&lt;MULTIVALUE&gt;&lt;STRING&gt;Name&lt;/STRING&gt;&lt;/MULTIVALUE&gt;&lt;STRING&gt;AC Years&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;COMPOSITEOPERATION TYPE=&quot;Filter&quot;&gt;&lt;OPERATION TYPE=&quot;Member&quot;&gt;&lt;STRING&gt;Life-To-Date&lt;/STRING&gt;&lt;STRING&gt;AC Years&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;/COMPOSITEOPERATION&gt;&lt;/COMPOSITEOPERATION&gt;"/>
    </DIMENSION>
    <DIMENSION DISABLED="0" HIDDEN="1" NAME="AC Scenario"/>
    <DIMENSION DISABLED="0" HIDDEN="0" NAME="Activity Status">
    <METADATAEXPRESSION VALUE="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;COMPOSITEOPERATION TYPE=&quot;MemberQuery&quot;&gt;&lt;OPERATION TYPE=&quot;Select&quot;&gt;&lt;MULTIVALUE&gt;&lt;STRING&gt;Name&lt;/STRING&gt;&lt;/MULTIVALUE&gt;&lt;STRING&gt;Activity Status&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;COMPOSITEOPERATION TYPE=&quot;Filter&quot;&gt;&lt;OPERATION TYPE=&quot;Member&quot;&gt;&lt;STRING&gt;40&lt;/STRING&gt;&lt;STRING&gt;Activity Status&lt;/STRING&gt;&lt;/OPERATION&gt;&lt;/COMPOSITEOPERATION&gt;&lt;/COMPOSITEOPERATION&gt;"/>
    </DIMENSION>
    </POV>
    </ELEMENT>
    </USER_POV>
    </JOB_OBJECT>
    </BATCH_JOB_OBJECT>

  • Task Sequence Command Line to Unregister DLL Not Working...Won't Run As Administrator

    Hi All,
    I'm trying to unregister a dll by creating a Custom Task Sequence using the command line "%SystemRoot%\System32\regsvr32.exe" /s -u "%CommonProgramFiles%\Microsoft Shared\VGX\vgx.dll"
    SCCM is reporting success, however the DLL isn't being unregistered on the client machines.  If I manually run the command on a client machine as administrator it works.  I have specified that same administrative user in the Custom Task Sequence. 
    These are Windows 7 machines, so my hunch is it has something to do with UAC, but I'm kind of stumped what to do here but feel like I'm missing something obvious.
    Thanks!

    Thanks again Jason for sticking with me here.  We are running this on 64-bit Windows.  Okay, I fixed the command line so it now is: %windir%\sysnative\regsvr32.exe /s -u "%CommonProgramFiles%\Microsoft Shared\VGX\vgx.dll"
    Once again, SCCM shows it successfully executed the task sequence, however the dll still didn't unregister.
    Any other ideas what might be going on?  I really appreciate the help.
    Here are the events for the advertisement from old to new in case they help:
    Program started for advertisement "SEA2011B" ("SEA000E8" - "*").
    Command line: "C:\Windows\SysWOW64\CCM\TSLauncher.exe"
    Working directory: C:\Windows\system32\
    User context: NT AUTHORITY\SYSTEM
    The task sequence execution engine started execution of a task sequence.
    The task sequence execution engine successfully completed the action (Run Command Line) in the group () with exit code 0
    Action output: =======================[ smsswd.exe ] =======================
    PackageID = ''
    BaseVar   = '', ContinueOnError=''
    SwdAction = '0001'
    Command line for extension .exe is "%1" %*
    Set command line: Run command line
    Working dir 'not set'
    Executing commandline: Run command line
    Process completed with exit code 0
    Command line returned 0.
    The task sequence execution engine successfully completed a task sequence.

Maybe you are looking for

  • How to see data for particular date from a alert log file

    Hi Experts, I would like to know how can i see data for a particular date from alert_db.log in unix environment. I'm suing 0racle 9i in unix Right now i'm using tail -500 alert_db.log>alert.txt then view the whole thing. But is there any easier way t

  • Will there be a fix for Blackboard any time soon?

    blackboard is an already touchy program and while I don't know what the problems are with the new update and the board but to have our Tech Support post a Notice every time you log in to NOT update to the new versions of firefox or IE within hours of

  • 2 Line Items having different ADRNR even if their Delivery Address is same

    When I change the Delivery Address of a PO line item (eg. line item 10) manually to the Delivery Address of another line item (eg. line item 20), their ADRNR remain different. Shouldn't line item 10 adopt the same ADRNR as that of line item 20? Is th

  • Palm TX does a soft reset when I tap on memos

    I am new to posting on this forum.  My Palm TX does a soft reset when I tap on memos or push the button I have set to memos.  I also have had several soft resets occur after tuning the my palm on from the On/Off button.  I have had Palms for the last

  • Why do my Boolean control get a different display when I the controls grayed out?

    I have some Boolean control in a cluster which I grayed out programmatically. If I do that this control's get grey as expected. But if I do that with Boolean which are grouped in a decoration field then the control become a blue style. How can I chan