Pressing ENTER in Command Prompt to solve hanging

Hi,
Does anyone know why sometimes Java hangs, unless you press ENTER in the
Command Prompt for Windows 2K? After pressing ENTER it continues execution.
It happens with WebLogic sometimes too. It will not print anything on the
console until I press ENTER.
I'm sure lots of Java developers have experienced this weird problem.
Thanks,
Duke
[email protected]

That is what we call a "feature" of an enterprise-class OS ;-)
Peace,
Cameron Purdy
Tangosol Inc.
Tangosol Coherence: Clustered Coherent Cache for J2EE
Information at http://www.tangosol.com/
"Chad McDaniel" <[email protected]> wrote in message
news:[email protected]..
On windows machines be very careful to turn off the "mark" option in
the shell preferences. It can halt the server.
Daniel Hoppe <[email protected]> writes:
Hi,
because you marked something in the command prompt. Marking stops
execution. Enter means 'copy' and continues execution...
Daniel
-----Original Message-----
From: Duke Nguyen [mailto:[email protected]]
Posted At: Thursday, December 13, 2001 3:16 AM
Posted To: ejb
Conversation: pressing ENTER in Command Prompt to solve hanging
Subject: pressing ENTER in Command Prompt to solve hanging
Hi,
Does anyone know why sometimes Java hangs, unless you press
ENTER in the
Command Prompt for Windows 2K? After pressing ENTER it
continues execution.
It happens with WebLogic sometimes too. It will not print
anything on the
console until I press ENTER.
I'm sure lots of Java developers have experienced this weird problem.
Thanks,
Duke
[email protected]

Similar Messages

  • Module pool screen field should default without pressing enter

    Hi
    I have got a main module pool screen which has a tabstrip with four tabs.
    There are 2 fields in the main screen when we select from F4 for the first field then the field 2 should default in case of a condition.
    This happens only when i press enter. I want the second field to change  as soon as the first field is selected.
    How do I trigger the PAI as soon as the field 1 is selected.
    eg:                           Field 1 :  i/p
                                    Field 2 : display
                                   Field 3 : i/p
    On F4 for field 1  say i select value 'A' then the valu for field 3 should default to value 'B'.  Also field 2 should be displayed based on combination  of field 1 and field 2. But now it does it only on pressing enter.
    How do I solve this problem?Also if i select field 1 value A and dont press enter and go to the subscreen tab then it does not do any thing. It allows to go on the subscreen tab. But actually it should default the field 3 value. It does it only when I press enter.
    Also the F4 is from dictionary that is the screen fields are from dictionary. I have not created any F4 for the fields.
    Please help me solve this problem
    Regards,
    mozila

    Hi
    You can achieve this using List Box only not by Input Field. Since Input field doesn't trigger automatic PAI/PBO
    Go through the below thread
    populate drop down menu based on entry in another field
    or an alternative is--> In PBO use POPUP_GET_VALUES Fm to get the First input field based on that you can enter further values
    unicode error
    Cheerz
    Ram

  • Create theme path using Command prompt & telnet?

    Hey guys I want my SMP to display linksheets. I have the latest firmware installed. I have been successfully running GBBM off of a usb (using the latest wdlxtv firmware) & my linksheets display fine. However, some films stutter & pause when using wdlxtv (they play fine when I unplug the usb stick & run the official firmware). So my aim is to change the theme path so that GBBM is booted from my usb stick & I can display linksheets but I will be using the official firmware. I have been following this guide found on the forum: http://community.wd.com/t5/WD-TV-Live-Streaming/Getting-around-the-30MB-theme-limit-and-repointing-the-SMP-to/td-p/631463 After attempting to set the theme path I reboot my SMP but it is still at the default theme.
    When I look under 'appearance', it states my theme path that I entered in Command Prompt.
    I think that I may be entering the theme path slightly wrong.
    My USb is identified as: /tmp/media/usb/USB210/4489-F8EA
    The folder that I created on my USB was: wdtv_​themes
    So I assumed my theme path would be: config_tool -c THEME_PATH=/tmp/media/usb/USB210/4489-F8EA.wdtv_​themes
    However, this doesn't seem to work.
    Any help?  

    this is all over my head, but KAD79 is about the only person that could help you with this but i did notice one thing, the path is missing a missing forward slash ?   bird06 wrote:
    My USb is identified as: /tmp/media/usb/USB210/4489-F8EA
    So I assumed my theme path would be:config_tool -c THEME_PATH=/tmp/media/usb/USB210/4489-F8EA.wdtv_​themes config_tool -c THEME_PATH=/tmp/media/usb/USB210/4489-F8EA/.wdtv_​themes     

  • Nokia 5610 new phone hang when press enter key; it...

    Anyone facing this problem? I just brought couple of days only, I found the phone hang when i switch ON it and press Enter key after the PIN code. It looks no response and keep displaying on that screen.
    Solved!
    Go to Solution.

    15-Sep-2008 09:25 AM
    merceleong wrote:
    I sent it to reinstalled the software and it looks ok now but, anyone know for new phone, how long the battery will last? My unit found only two days without playing music all the time.
    Just an advise
    On it's first time fully charge and discharge - vice versa for three times. After that don’t drain your battery every day to 10-20% of its charge. You can actually expect battery problems by draining the battery frequently.
    Roughly every 30 charges, deliberately discharge your battery to 10-15%, and fully charge to 100% afterwards.
    This will help maintain the accuracy of the “fuel gauge” on the device (your battery meter or scale). It has nothing to do with the battery memory but helps maintain the accuracy of the device’s percentage of battery charge left.
    Good luck

  • Running commands with powershell - randomly need to press Enter for the command to continue

    Hi,
    I have noticed quiet a few times now that when i run some commands in a powershell window, the execution seems to hang and if i press enter the rest of the command is executed.
    It does it for such as simple thing as
    xcopy \\source \\dest
    repadmin /syncall /Adep
    The commands are executed but i need to press enter at some point (and multiple times) for the command to complete.
    Anyone have seen this kind of behavior?

    Something very similar to this came up recently, so I'll throw it out there.  Do you have "QuickEdit Mode" enabled for your PowerShell console?  If so, when you click your mouse somewhere in the window, it starts to select text to be copied or
    pasted, and your window title will change from (for example) "Windows PowerShell" to "Select Windows PowerShell".  When you press enter, you copy whatever was highlighted to the clipboard, and the console goes back to normal.

  • Test Execution hangs while executing a test from Command prompt option

    I have done the following
    1) Created a script Test driver
    2) Added different scripts as Script->Properties->Assets to the driver script
    3) Call each of this asset script from TestDriver using command getScript("<<ScrptName>>".run(1, true, true, true);
    4) Now calling this TestDriver script from command prompt with command
    e:\\OracleATS\\agent
    runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriver
    TestDriver.jwg
    The script execution hangs at "Initializing VU 1 for Script TestDriver. After few mintues of seeing this message i get error "Execution Timed Out".
    Do I need to keep openscript UI open for script execution from command line ?
    Is there any way to increase this Execution Time out ? May be it is taking time to load the internal script assets. AS other scripts are running fine on the same machine from command prompt itself.
    Complete error is as follows
    C:\Documents and Settings\oracle>e:\\OracleATS\\agent\\runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriv
    er\\TestDriver.jwg
    Running "TestDriver" ...
    Agent started. Available commands:
    stop - Stop the virtual user after it finishes the current iteration.
    abort - Abort the virtual user cleanly, before it finishes the current itera
    tion.
    exit - Terminate the process immediately
    You may type the above commands at any time.
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    12:17:53,465 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    12:17:53,856 INFO [1] Initialized script service "oracle.oats.scripting.modules.datatable.api.DataTableService"
    12:17:53,856 INFO [1] Initializing VU 1 for script TestDriver
    Execution Timed Out.

    Hi e_raja_sekar,
    You wrote:
    public static void main(String args){should be
    public static void main(String args[]){Granted, the below code was tested on Windows XP using J2SE SDK 1.4.1_02 (and not 1.2.2 like Sridhar is using), but when I compiled and executed this code:
    public class BadMain {
      public static void main(String args) {
        System.out.println("Hello World");
    }The output I got was:
    Exception in thread "main" java.lang.NoSuchMethodError: mainSo I don't think this is Sridhar's problem (but I could be wrong) since he says that he gets no error message.
    Cheers,
    Avi.

  • I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?

    I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?
    i tryed with download mavericks but finally its saying a error message like cant conect to istore like that its saying and every thing is clear like internet and other stuf i tryed with 3times no progress same error pls help.. i bought this lap for my bro with his apple id only we use it now he got a new mac book pro so he gave to me so i formated and use it i use my apple id is that problem come because of changing apple id ? pls eplain

    Firstly, what is the source of the 10.6.4 disc? Is it the original installation disc for your MacBook, or one 'borrowed' from another computer?
    It isn't the retail version, because that's 10.6.3.
    Assuming it's the correct disc (i.e. the one that shipped with your Mac), you need to boot from it again.
    OK the language page.
    From the installer screen, ignore the continue button, go to the menu bar and choose Disk Utility from the Utilities menu.
    In DU, select your internal drive in the sidebar (the top item with the makers name and serial no.).
    Run Repair Disk. If that comes up as disk OK, click the partition tab. Select the partiton from the drop-down above the graphic; 1 partiton is all you need.
    Go to the options button and ensure that the partition scheme is GUID and the file system to Mac OS Extended (Journalled). Name the partiton (usually Macintosh HD), click Apply.
    When the Macintosh HD volume appears below the drive name, quit DU and see if you can then install.
    If the screen after the language screen doesn't show the menu bar, it may be necessary to use another Mac to do the job with the MB in Firewire Target Disc Mode. If it won't boot in TDM, or the MB doesn't have FireWire then it's getting very difficult.

  • Wait for command prompt - Enter-PSSession

    Enter-PSSession -ComputerName ServerName
    Restart-Service DNS -PassThru
    Exit-PSSession
    I am trying to restart the DNS Server service on several remote machines using a foreach loop.  The problem is the the script does not wait until the command prompt shows up after executing the "Enter-PSSession -ComputerName ServerName". 
    I have not been able to fine a way to tell the script to wait for the prompt before continuing the script.   Thank you for any assistance that can be provided.

    You can use
    Invoke-Command rather than entering a PS-Session.
    Something like this may do what you need:
    $servers = @("Server1.fqdn.example.com","Server2.fqdn.example.com","Server3.fqdn.example.com")
    $scriptblock = "Restart-Service DNS"
    foreach ($server in $servers) {
    Invoke-Command -ScriptBlock $scriptblock -ComputerName $server
    Replace the server names in $servers with your actual server names. This assumes of course you have PSRemoting enabled which you would need for the PSSessions.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • TS4123 I have problem with iTunes story (secure link to itunes store failed). I make In the "Command Prompt" screen, type in   netsh winsock reset the itune story is solve but after i close itunes the problem is back

    I have problem with iTunes story (secure link to itunes store failed). I make In the "Command Prompt" screen, type in   netsh winsock reset the itune story is solve but after i close itunes the problem is back

    The results show that you have a proxy server set and this can often cause problems with iTunes.
    The proxy setting can be accessed in Internet options>>Connections>>LAN Settings.
    Try un-checking the proxy server check box.
    It might also be a good idea to run a malware check if you didn't know you had the proxy server set.
    You can download a free version of an excellent scanner- Malwarebytes here:
    http://www.malwarebytes.org/

  • Invoking a command link's action from a javascript, on pressing enter key

    i have the foll java script function. on pressing enter within an input field i want a certain commandlink's action to be automatically performed:
    function checkKeycode() {
         alert("entered");
              var keycode;
              if (window.event) keycode = window.event.keyCode;
              //else if (e) keycode = e.which;
              if(keycode==13){               
                   alert("keycode: " + keycode);           
                   var x=document.getElementById("form10:link1");
                   alert("about to click");
                   x.click();
                   //document.forms[0].link1.click();               
                   //if(validate('form1:_system_username,form1:_system_password','form1:_id0,form1:_id1','2'))
                        //alert("about to submit page");
                        //submitPage();
         }This fn is being called from the input text as follows:
    <h:inputText styleClass="inputText" id="text1" size="32" onkeypress="checkKeycode();"></h:inputText>And the code containing the command link who's action i want to be called is:
    <h:commandLink styleClass="commandLink" id="link1"
                             action="#{pc_Test.doLink1Action1}">
                             <hx:graphicImageEx border="0" styleClass="graphicImageEx"
                                  id="imageEx1" url="../../images/search.gif"></hx:graphicImageEx>
                        </h:commandLink>
    The javascript is being entered as i get an alert saying that enter key was pressed. However it is not performing the action requried, saying that "null is null or not an object"
    could sumone please help????

    Hi
    From your javascript , it is known that this is only work in IE,
    And indeed it works fine, mybe there is another button which the default in your jsp
    Change your code like this:
    onkeypress="return checkKeycode();"
    and at end of your javascript return false when you call x.click
    Message was edited by:
    okoi80

  • In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it does'nt work there . Means the page is not navigating towards the address. Kindly solve the problem

    In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it doesn't work there . Means the page is not navigating towards the address. Kindly solve the problem

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • [SOLVED] Adding users with command prompt

    I'm doing as the beginers guide says for adding non-sudo users to my installation. I'm using
    adduser
    to do this. For the bash bit is pressing enter to just have /bin/bash, which I assume is default ok? I also pressed enter to have default for user ID. The longer way around it had this as an example:
    useradd -m -G users,audio,lp,optical,storage,video,wheel,power -s /bin/bash archie
    I'm looking in particular at the /bin/bash archie bit at the end. Do I leave it or make sure it's got the name of the user at the end e.g. in my case
    /bin/bash ben
    ? It's just when I tried to do that the first time It gave me some message about it not being there.
    Last edited by Ben9250 (2010-07-05 21:47:05)

    Ah misread, solved it!

  • [Solved]SSH messed command prompt

    Hello,
    I try to describe what is my problem. [CURSOR] - is my cursor
    I connect to SSH. OK
    I type command. OK
    I can correct beginning of command. OK
    I execute command. OK
    $  echo 11111111111111111111111111
    $  echo 0000000000000000000000000
    I go to history - first command shows OK
    $  echo 0000000000000000000000000
    second history command when I try correct beginning(click home button or left arrow), I simply can't, I can access only 11-th letter of command.
    $  echo 11111[CURSOR]111111111111111111111
    now I go back to first history command
    $  echo 11111echo 000000000000000000000000[CURSOR]
    command prompt stay messed,  and command can be executed successfuly only if I dont touch it.
    I can go to beggining, but only 11th character
    $  echo 11111[CURSOR]echo 000000000000000000000000
    I press once more arrow down to get "live" clear command prompt.
    $  echo 11111[CURSOR]
    prompt stay messed, I cant delete string, only ctrl+c helps.
    I tried urxvt and xterm. Generally it will happen If I execute command which has more than 30 letters.
    Thanks for help.
    Last edited by kubco2 (2013-11-18 20:31:39)

    $TERM says same: xterm
    local machine
    $ infocmp
    # Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm
    xterm|xterm terminal emulator (X Window System),
    am, bce, km, mc5i, mir, msgr, npc, xenl,
    colors#8, cols#80, it#8, lines#24, pairs#64,
    acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
    bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
    clear=\E[H\E[2J, cnorm=\E[?12l\E[?25h, cr=^M,
    csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
    cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
    cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
    cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
    dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
    flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
    ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
    ind=^J, indn=\E[%p1%dS, invis=\E[8m,
    is2=\E[!p\E[?3;4l\E[4l\E>, kDC=\E[3;2~, kEND=\E[1;2F,
    kHOM=\E[1;2H, kIC=\E[2;2~, kLFT=\E[1;2D, kNXT=\E[6;2~,
    kPRV=\E[5;2~, kRIT=\E[1;2C, kb2=\EOE, kbs=^H, kcbt=\E[Z,
    kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
    kdch1=\E[3~, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~,
    kf11=\E[23~, kf12=\E[24~, kf13=\E[1;2P, kf14=\E[1;2Q,
    kf15=\E[1;2R, kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
    kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
    kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
    kf25=\E[1;5P, kf26=\E[1;5Q, kf27=\E[1;5R, kf28=\E[1;5S,
    kf29=\E[15;5~, kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~,
    kf32=\E[19;5~, kf33=\E[20;5~, kf34=\E[21;5~,
    kf35=\E[23;5~, kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q,
    kf39=\E[1;6R, kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~,
    kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
    kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
    kf48=\E[24;6~, kf49=\E[1;3P, kf5=\E[15~, kf50=\E[1;3Q,
    kf51=\E[1;3R, kf52=\E[1;3S, kf53=\E[15;3~, kf54=\E[17;3~,
    kf55=\E[18;3~, kf56=\E[19;3~, kf57=\E[20;3~,
    kf58=\E[21;3~, kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~,
    kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R, kf7=\E[18~,
    kf8=\E[19~, kf9=\E[20~, khome=\EOH, kich1=\E[2~,
    kind=\E[1;2B, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
    kri=\E[1;2A, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El,
    memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
    rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmcup=\E[?1049l,
    rmir=\E[4l, rmkx=\E[?1l\E>, rmm=\E[?1034l, rmso=\E[27m,
    rmul=\E[24m, rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7,
    setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
    setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
    setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
    sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
    sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smcup=\E[?1049h,
    smir=\E[4h, smkx=\E[?1h\E=, smm=\E[?1034h, smso=\E[7m,
    smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
    u8=\E[?1;2c, u9=\E[c, vpa=\E[%i%p1%dd,
    host machine
    $ infocmp
    # Reconstructed via infocmp from file: /lib/terminfo/x/xterm
    xterm|xterm-debian|X11 terminal emulator,
    am, bce, km, mc5i, mir, msgr, npc, xenl,
    colors#8, cols#80, it#8, lines#24, pairs#64,
    acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
    bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
    clear=\E[H\E[2J, cnorm=\E[?12l\E[?25h, cr=^M,
    csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
    cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
    cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
    cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
    dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
    flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
    ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
    ind=^J, indn=\E[%p1%dS, invis=\E[8m,
    is2=\E[!p\E[?3;4l\E[4l\E>, kDC=\E[3;2~, kEND=\E[1;2F,
    kHOM=\E[1;2H, kIC=\E[2;2~, kLFT=\E[1;2D, kNXT=\E[6;2~,
    kPRV=\E[5;2~, kRIT=\E[1;2C, kb2=\EOE, kbs=\177, kcbt=\E[Z,
    kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
    kdch1=\E[3~, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~,
    kf11=\E[23~, kf12=\E[24~, kf13=\E[1;2P, kf14=\E[1;2Q,
    kf15=\E[1;2R, kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
    kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
    kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
    kf25=\E[1;5P, kf26=\E[1;5Q, kf27=\E[1;5R, kf28=\E[1;5S,
    kf29=\E[15;5~, kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~,
    kf32=\E[19;5~, kf33=\E[20;5~, kf34=\E[21;5~,
    kf35=\E[23;5~, kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q,
    kf39=\E[1;6R, kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~,
    kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
    kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
    kf48=\E[24;6~, kf49=\E[1;3P, kf5=\E[15~, kf50=\E[1;3Q,
    kf51=\E[1;3R, kf52=\E[1;3S, kf53=\E[15;3~, kf54=\E[17;3~,
    kf55=\E[18;3~, kf56=\E[19;3~, kf57=\E[20;3~,
    kf58=\E[21;3~, kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~,
    kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R, kf7=\E[18~,
    kf8=\E[19~, kf9=\E[20~, khome=\EOH, kich1=\E[2~,
    kind=\E[1;2B, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
    kri=\E[1;2A, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El,
    memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
    rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmcup=\E[?1049l,
    rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
    rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7,
    setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
    setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
    setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
    sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
    sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smcup=\E[?1049h,
    smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
    tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
    vpa=\E[%i%p1%dd,
    I dont know, what should I find in infocmp.
    Last edited by kubco2 (2013-11-18 17:36:08)

  • [SOLVED] Bash: Append file contents to command prompt

    Hi,
    is there a way to append the contents of a file to the command prompt? Say I have defined an alias and I want to change it on the fly. So I'd do
    $ which <my_alias>
    then mark it with the mouse, and paste it to the command line. What I would like to do instead, would be:
    $which <my_alias> > some_temp_file
    $vim some_temp_file #edit the command the way I want it
    $ # somehow get the file contents into the prompt here
    I did try to google it, but to no avail and I know, I could just create a script from some_temp_file but I want the content to appear at the command prompt instead. So is there a way?
    regards,
    mox
    Last edited by Mox (2014-03-07 15:46:09)

    Mox wrote:@progandy: Yes, this might be a step in the right direction. But what do the -i and -v options do? I did not find any documentation in the manpage. And is there a way to expand $COMMAND in the command line before running $COMMAND?
    Why do you want to have the command in a prompt twice? "read -er COMMAND && eval "$COMMAND"" creates a prompt-like environment and then executes the input string. What the options do you can read in the bash-internal help, e.g.:
    $ LC_ALL=C help read
    -e use Readline to obtain the line in an interactive shell
    -i text Use TEXT as the initial text for Readline
    -p prompt output the string PROMPT without a trailing newline before
    attempting to read
    -r do not allow backslashes to escape any characters
    Here is an example:
    [progandy@pamobile ~]$ alias some_test='echo -e Hello WORLD"!"'
    [progandy@pamobile ~]$ command_to_edit="some_test"
    [progandy@pamobile ~]$ read -erp "Edit and execute: " -i "$(command -v $command_to_edit)" COMMAND
    Edit and execute: echo -e Hello WORLD"\t!"
    [progandy@pamobile ~]$ ####### in the line above you edit the command and bring it in the final form with all necessary paramters.
    [progandy@pamobile ~]$ echo -E " *~* Now running: $COMMAND"
    *~* Now running: echo -e Hello WORLD"\t!"
    [progandy@pamobile ~]$ eval "$COMMAND"
    Hello WORLD !
    [progandy@pamobile ~]$
    Last edited by progandy (2014-03-05 05:21:39)

  • Running a GUI application without holding command prompt

    Hi there ,
    I have developed a GUI application using Swing. After compiling the same successfully , when I run the same , presently , I am running it like ,
    c:\> java xxx
    where c:\ is the general command prompt on a Windows machine where I can type in my commands like javac or java and xxx is the class file name . Now till I complete using my GUI application and exit from the same , the command prompt will also be there ( and probably displaying the output of my System.out.println ) . So , two sessions are running , one is just the command prompt and another is the actual GUI application.
    How can I avoide this ? e.g. when I type command "notepad" and press enter , notepad is started and the command prompt returns after starting notepad i.e. the notepad and the command prompt are not related now , I can close the command intrepreter and still notepad is running . What should I do to create such a Java GUI application ? Please advice .

    If I understand you correctly this is something that happens in linux also. And I believe that you can solve this by creating to shortcut to this program.
    And the shortcut or link to application will be the command line that you use to run the Java Application.
    i.e.
    java c:\javadir\subjavadir\application.class
    And I believe that this will allow it to run without the command prompt. Just showing the GUI and no additional command prompt window. Freeing the command prompt is something that I don't know how to do in either OS.
    I use the Link To Application method because I ultimately don't need to have multiple windows for one application. Even though it is nice to be able to kill the Application by destroying the command-prompt session (in case your app causes lock-ups during testing).
    Post your results . . . I'm not even sure that I'm being clear at all with my explanation to your question.

Maybe you are looking for