Virtual Command Line Console

If you ever need to open an SR for an issue with a snapshotted application, or simply want to do some basic testing prior to building a virtual application that requires snapshotting, a virtual command line console is an excellent tool:
1. Open ZAV studio
2. Start a new project
3. Point the startup file to C:\WINDOWS\system32\cmd.exe
4. Point the output file to any location you wish
5. Build
To test:
1. Run the virtual CMD.exe
2. Navigate to the location of the installed exe you want to virtualize and run it
The purpose of this test is simple: as we have not modified the configuration at all and have included no virtual file system or registry, this virtual CMD is running inside the xVM and using the file system/registry of the OS. This strips away all of the packaging elements that go into the snapshot process, allowing the cleanest possible test.
If the installed application runs under these conditions, but fails to operate correctly when built into a virtual application, there is something going wrong in the packaging process. This could be a file being left out of the virtual file system, or a setting that needs to be in place, etc. If the installed application fails to operate correctly using the virtual CMD, however, there is a more serious issue; an SR should absolutely be opened if possible, so the support team can assist.

this is an xwindows error meaning you haven't setup xwindows properly in the context where you're running the program - is it in a unix shell ? Do you have an XServer running ?

Similar Messages

  • Command line console, any decent package?

    Hello there:
    I was given an assignment to write a simple adventure game, command line console is to be used to accept user instructions. While we can create a traditional while-loop to take users' requests, i am wondering if there is any decent package to handle commands from a console in a general way? It'd be a great time-saver in one's repository. :-)
    Thanks,
    Sway

    No packages that I know of, but take a look at the Scanner Class. Last time I did a Zork type of game it took like 2 hours to code up--with monster definitions, potions, and healing. You'll not get much more easy of an assignment for than a text based game.

  • Administration Port / command line /  console gui question

    In the Admin_ref.pdf doc it says "After enabling the administration port, all Administration Console traffic must connect via the administration port". Does this mean that you can no longer use the web gui console to manage the servers?
    I would like the option to script deployments (deploy ears, stop start servers etc.) via command line to reduce the possibility of user error during routine deployments.
    I do config mgmt. and am not a developer so I may be getting hung up on the language here.
    Thanks,
    gj

    Hi
    For first question the answer is no. With the administration port, you enable the SSL between the admin server and Node manager-managed Servers. You can still use the web console.
    For teh second question, you can use ANT or can use the WLS Scripting ..you can get more details in dev2dev.bea.com
    Jin

  • Clear Command Line Console from Java

    Is there a way to clear the dos/shell console screen from a java program (the same way as cls would do in dos ir clear would do in unix) without making a Runtime.exec call??
    Thanks for your time
    wwe8

    What console window are you talking about?
    1- You might be starting a java application in a console window.
    2-Or it might be another console window.
    3-You might be starting a console window in java via Runtime.exec().
    For 1 and 2 you would need a JNI, platform specific solution. I believe the java testing tools do this, so if you got one of those it might provide an interface for this.
    If 3, then you would use the input stream to pass the command to the window.

  • Command Line/Console Mode Menu's and ASCII-Graphics

    Dear Sun java friends:
    Pardon me if this has been asked. I have used the search function but have been unable to find useful information.
    I am developing a series of programs to parse servers logs and compute certain statistics. There will also be a real-time monitor of active connections. This would be an extrodinarily simple task with swing and awt, but i am limited to the console mode only. In my quest for neatness (i do not want a continious screen scroll of active connets/disconnects with System.out), i am looking for a way to create simple ASCII-like graphics, not much unlike the TSR's from the old DOS days.
    Obviously, System.out.println() does not give me the power i need. I would like to be able to print text/characters at a certain x,y coordinate. Is it even possible with Java? Where can i look for tutorials or get more information?

    There is no standard package in Java for console graphics but a number of third party packages exist. For example the ncurses library has been ported to Java, do a web search on "java curses." IIRC it's open source but I've never used it..

  • Converting a command-line console application to a jsp or servlet

    What would be the steps to convert a console based application to a servlet based application?
    For example, I have a Scanner object that takes input from System.in and assigns it to a string.
    How might I turn the scanner input into a form on a jsp, or a servlet?What would be the steps to convert a console based application to a servlet based application?
    For example, I have a Scanner object that takes input from System.in and assigns it to a string.
    How might I turn the scanner input into a form on a jsp, or a servlet?

    Obviously you can't read from the scanner. Instead you have to read from request parameters.
    So you have to take a step back and define what values are being input into your application.
    At its most basic you could do it as a jsp page with a textfield/textarea which the user could type into instead of typing on the console input.
    For instance if your application asks the user to enter their name, and then reads the name from System.in, then you have on your jsp page a <input type="text"> and a submit button.
    In the servlet which gets run when you submit the button you get the user's name via request.getParameter().
    At that point you have your input String, and have removed System.in from the process.
    But you are not just limited to text input with an html form. You can use any of the controls available. So asking a user "What is your favorite colour?" Instead of having them type in the answer, you could have them choose it from a radio group or dropdown select box.
    Either way it still gets to the Servlet as a String via request.getParameter.
    Steps you might follow
    1 - identify the values being input into your program
    2 - Write your jsp - start with just textfields
    3 - Write your servlet handler to retrieve the values from the JSP.
    4 - Determine the appropriate control on an html form to replace each input
    5 - Modify the textfields to other controls (dropdown/radio button) as appropriate.
    Theoretically the rest of your program doesn't need to change once you have the value in a String.
    Your method of reading just changes from using Scanner and System.int to request.getParameter()
    Similarly your method of writing would change from using System.out to a response JSP page.
    hope this helps,
    evnafets

  • Virtual media command line

    Hello, I'm curious if anyone has had success with connecting virtual media from the command line from a Windows server (map to local ISO/connect to CIMC)?  Basically I need to mount an ISO programatically, and CIMC/virtual media is outside of the UCS XML/API.  If there's another way, i.e. upload ISO/mount via SMASH-CLP, I'm open to that as well.
    Thanks,
    David

    We are planning to implement Auto OS deployment on these blades as we are keep on deploying OS very frequently. If we are able to do so, it will reduce manual intervention and overhead for these servers. we are able to get console over SOL but the real problem  is to mount virtual media(ISO). For some reason we dont want to use PXE. 

  • Starting managed servers from admin console vs. command line

    Will the arguments I enter in the "Arguments" section of the "Server start" admin console page also be used if I start the managed server from the command line using startManagedWeblogic.sh?
    And conversely, will changes I make to the scripts take effect when I start the server from the admin console?

    No,
    the arguments that you set thru Console GUI are effective when Node manager start your server.
    Ammar Sajdi

  • Console APP - Call function based upon a command line parameter

    I am writing an extrensible console ( interactive console ) application was thinking having my application read in the command, then look up which function to use to process its parameters.
    say the command the user types is "print Hello World"
    I would just grab the first parameter, recognize it as the print command , and then call a function in my class that prints out "Hello World" to the screen.
    Instead of doing a bunch of If statement to match the first argument to a recognized command, what I would like to do is have a type of Hash table that points to the correct function to process the command.
    So.. something like :
    String cmd = console.readline( "Enter your command" ); - get the users command
    "function = HashMap.get( cmd)" - get the function out of the hashmap
    "function( parameters )" - run the function
    the prompt for another command, as long as the last command wasn't "exit"
    I would have to check to make sure the command had a function mapped to it, but with this setup, all I do is update the table when I need to add a new command. and the function( method ) that processes it.
    Thanks!

    It sounds like you're describing the Command pattern. It normally goes something like this:
    interface Command {
        Object execute(String... args);
    Map<String, Command> commands = new HashMap<String,Command>();
    commands.put("print", new Command() {
        public Object execute(String... args) {
            System.out.print(args);
    // ... and more commands
    //.. then in your command-line UI, for example:
    BufferedReader in = new BufferedReader...
    String line;
    while((line = in.readLine()) != null) {
        String[] tokens = line.split();
        Command cmd = commands.get(tokens[0]);
        String[] args = take_subarray_of_tokens_starting_at_1_I_forget_easiest_way_to_do_that(tokens);
        Object returnval = cmd.execute(args);
        // maybe you'll want to do something with return val, or maybe it should be an int more like an exit val, whatever
    }Not tested but you get the idea.

  • System.out  View Console via Unix box/ Command Line

    I am dumping messages to System.out. When I package it and run it as a service, I can drop this to an out file. When I just run the jar file from the windows command line or from a Unix box it runs silently. Is there a way to have the System.out dropped to a file in this scenario or better yet shown on screen?
    Once I run the jar file how do I kill it without killing the process?
    Thanks

    Fanbladeus02 wrote:
    "Killing a jar file..." I don't want to kill the Jar file itself, but I do want to stop it from running after I launch it.Then you mean you want to kill the process which is using the jar file.
    >
    Example from my unix prompt I do something like this:
    java -jar -classpath </home/user/jarprog/> /home/user/jarprog/JARPROG.jar jarprog.Main.java
    I don't see any output, it just drops to the next open prompt. This means the program has finished. It could have started another one which does the real work, but you have no control over it.
    I assume java is still running my jar file somewhere. (My first thought was) That is very unlikely unless the writers of the code have gone to great lengths to hide another running process from you. (But reading further this appears to be the case)
    How do I stop it? Find the process with "ps" and send it a kill signal.
    Once I start the program how do I interact with it to stop it?ctrl-C, but you cannot kill it after the prompt has returned because its not running any more. (it started another process and then bailed)
    Similiarly in Windows, I run it from the command line it drops to the next "c:\". I look in task manager and see java running. It appears your program starts another java process in the background.
    I look in the database that it is updating and the records are flying in. If I end the process, the records stop flying in (DUH). Again how do I interact with it to gracefully end the process?It appears that whoever wrote the program has gone to some lengths to prevent you from doing that. I would ask them.

  • User administration per command line or skript ?

    hi everybody,
    does anyone know if it is possible to add users, roles, groups per command
    line or skript instead of the Admin-Console ?
    Thanks in advance
    harald

    I don't know why you want this but beware with this kind of things. A long, long time ago I decided it would be cool to write a small program to lock my hard drive so nobody would change anything. It was a success. The problem was that the application didn't unlock the drive and to compile the new version I had to format the drive and reinstall everything (including the 30 MS Office diskettes and the rest of the stuff).
    You must remember that the administrator is also a user... This change would also (probably) prevent the system from creating swap files and Virtual Memory, logs wouldn't work and there are certainly a lot of other stuff that needs to write to the disk and that wouldn't work either.

  • OVS 2.2 :: Unable to install RHEL HVM on physical disk from command line

    [root@ovs2 xen]# /usr/sbin/virt-install hvm name=test2 ram=1024 vcpus=1 bridge=xenbr0 file /dev/sdc --nographics
    What would you like to use for the virtual CD image? /var/ovs/mount/1FB2E6B36D21418792A1DD30B62C689F/iso_pool/rhel-server-5.6-x86_64-dvd.iso
    Starting install...
    Guest installation complete... restarting guest.
    exception was: Domain named test2 already exists!
    Domain installation may not have been
    successful. If it was, you can restart your domain
    by running 'xm create -c test2'; otherwise, please
    restart your installation.
    [root@ovs2 xen]# more test2
    # Automatically generated xen config file
    name = "test2"
    builder = "hvm"
    memory = "1024"
    disk = [ 'phy:/dev/sdc,hda,w', ]
    vif = [ 'type=ioemu, mac=00:16:3e:3d:d0:5c, bridge=xenbr0', ]
    uuid = "f99f6a07-6d03-a0ae-8f2f-a7a0e1af5e31"
    device_model = "/usr/lib/xen/bin/qemu-dm"
    kernel = "/usr/lib/xen/boot/hvmloader"
    nographic=1
    timer_mode=0
    apic=1
    acpi=1
    pae=1
    vcpus=1
    serial = "pty" # enable serial console
    on_reboot = 'restart'
    on_crash = 'restart'
    [root@ovs2 xen]# xm console test2
    xenconsole: Could not read tty from store: No such file or directory
    [root@ovs2 xen]#
    + No errors in xend.log or qemu-*.log
    + hypervisor inittab is default .. co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav
    Using similar syntax, and installing paravirtualized guest to physical disk works fine.
    [root@ovs2 xen]# /usr/sbin/virt-install paravirt name=demo3 ram=1024 vcpus=2 bridge=xenbr0 file=/dev/sdc nographics location=http://192.168.229.74/RHEL5764bit
    Starting install...
    Bootdata ok (command line is method=http://192.168.229.74/RHEL5764bit )
    Linux version 2.6.18-238.el5xen ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Sun Dec 19 14:42:02 EST 2010
    BIOS-provided physical RAM map:
    Xen: 0000000000000000 - 0000000040800000 (usable)
    No mptable found.
    Built 1 zonelists. Total pages: 264192
    Kernel command line: method=http://192.168.229.74/RHEL5764bit ...................................
    Any suggestions ??

    and i go to the temp mountpoint that the script will mount on
    Starting install...
    ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.7x4Rf4/boot/x86_64/vmlinuz-xen'
    [root@ovs2 opt1]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/cciss/c0d0p2 3050092 3033308 0 100% /
    /dev/cciss/c0d0p1 101086 47114 48753 50% /boot
    tmpfs 288856 0 288856 0% /dev/shm
    none 288768 40 288728 1% /var/lib/xenstored
    /dev/cciss/c0d0p3 288623616 301056 288322560 1% /var/ovs/mount/A52CB661C1CF41D198D50F6379822694
    /var/isos/OracleLinux-R5-U7-Server-x86_64-dvd.iso
    3755446 3755446 0 100% /el/EL5-x86
    192.168.229.110:/el/EL5-x86
    3755456 3755456 0 100% /opt1
    192.168.229.110:/el/EL5-x86/
    3755456 3755456 0 100% /var/lib/xen/xennfs.NnE54I
    [root@ovs2 opt1]# cd /var/lib/xen/xen
    xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
    xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
    [root@ovs2 opt1]# cd /var/lib/xen/xen
    xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
    xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
    [root@ovs2 opt1]# cd /var/lib/xen/xennfs.NnE54I/
    [root@ovs2 xennfs.NnE54I]# ls
    blafdoc.css EULA GPL README-en RELEASE-NOTES-en.html Server VT
    Cluster eula.en_US images README-en.html RPM-GPG-KEY supportinfo
    ClusterStorage eula.py isolinux RELEASE-NOTES-en RPM-GPG-KEY-oracle TRANS.TBL
    [root@ovs2 xennfs.NnE54I]# find . -name vmlinuz\*
    ./images/pxeboot/vmlinuz
    ./images/xen/vmlinuz
    ./isolinux/vmlinuz
    [root@ovs2 xennfs.NnE54I]#

  • 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

  • Unable to restart the Microsoft Software Protection Platform service from command line - Win81 MS Office 2013 SP1

    I'm unable to restart the Microsoft Software Protection Platform service on a Windows 8.1 laptop for MS Office 2013 SP1 (32-bit) using the following command:
    cscript ospp.vbs /osppsvcrestart (issued from C:\Program Files (x86)\Microsoft Office\Office15)
    When this is run, a window appears with the title ospp.vbs and the text "Error: The Software Protection Platform service is not installed"
    I verified that the service is installed in services.msc, and was able to manually stop and restart the SPP service in the Services console without issue.
    The command runs correctly when restarting the MS Office 2013 SPP on Windows 7 devices.
    Has anyone else seen this or have a solution for it?
    The reason that I am attempting to restart the service from the command line is because this command is part of a script to change the KMS server IP Address used by OSPP prior to software activation.
    The only other options that I have at this time is to ask the users to reboot, or manually force a reboot.  This is both time consuming and disruptive to the users.
    The Fix It tool to remove MS Office 2013 was run, and the MS Office 2013 software was successfully reinstalled after a reboot.  The software was successfully activated.  When the command was run, it produced the same exact error.

    Hi,
    I am able to reproduce this on my own machine, but in my case, I don't see the specific service running in the Services console. 
    I would like first confirm that whether you've the right service running on your Windows 8.1 system. The display name of this service should be "Office Software Protection Platform", service name is "osppsvc".
    You can also check this by going to below path where you should see the executable file (OSPPSVC.EXE) if the service is installed on your system (in my case, the folder is empty):
    C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Question about reading a string or integer at the command line.

    Now I know java doesn't have something like scanf/readln buillt into it, but I was wondering what's the easiest, and what's the most robust way to add this functionality? (This may require two separate answers, sorry).
    The reason I ask is because I've been learning java via self study for the SCJA, and last night was the first time I ever attempted to do this and it was just hellish. I was trying to make a simple guessing game at the command line, I didn't realize there wasn't a command read keyboard input.
    After fighting with the code for an hour trying to figure it out, I finally got it to read the line via a buffered reader and InputStreamReader(System.in), and ran a try block that threw an exception. Then I just used parseInt to get the integer value for the guess.
    Another question: To take command line input, do you have to throw an exception? And is there an easier way to make this work? It seems awfully complicated to take user input without a jframe and calling swing.
    Edited by: JGannon on Nov 1, 2007 2:09 PM

    1. Does scanner still work in JDK1.6?Try it and see. (Hint: the 1.6 documentation for the class says "Since: 1.5")
    If you get behaviour that doesn't fit with what you expect it to do, post your code and a description of our expectations.
    2. Are scanner and console essentially the same thing?No.
    Scanner is a class that provides methods to break up its input into pieces and return them as strings and primitive values. The input can be a variety of things: File InputStream, String etc (see the Scanner constructor documentation). The emphasis is on the scanning methods, not the input source.
    Console, on the other hand, is for working with ... the console. What the "console" is (and whether it is anything) depends on the JVM. It doesn't provide a lot of functionality (although the "masked" password input can't be obtained easily any other way). In terms of your task it will provide a reader associated with the console from which you can create a BufferedReader and proceed as you are at the moment. The emphasis with this class is the particular input source (and output destination), not the scanning.
    http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
    http://java.sun.com/javase/6/docs/api/java/io/Console.html

Maybe you are looking for