[SOLVED]some console commands without console make gui programs killed

I'm using openbox as WM. I think it is openbox that causes the trouble
it seems that when I try ot execute some console application without console but the application needs user input, the problem occurs.
when the issue arises, gui programs gets killed, leaving its window blank.
not all of gui programs though, chromium and conky got closed but xterm didn't.
however, they survive when they are executed with xterm.
I could reproduce the problem with sudo or alsamixer, run by either right-click menu or gmrun.
Is there anyone experiencing the same issue?
sorry for my english.
Last edited by freaxtux (2012-08-25 03:05:17)

If you are trying to run a console or terminal application that needs user input, it must be run in a terminal window.  For example, to run alsamixer from the openbox menu I would have this in my ~/.config/openbox/menu.xml:
<item label="Alsamixer">
<action name="Execute">
<execute>xterm -e alsamixer</execute>
</action>
</item>
The command on the line with "<execute>" opens an xterm window and then the '-e' option tells xterm to run the next command on that line.
Urxvt also uses the '-e' option to run commands.  To get htop to run from the open box menu in a urxvt window, I would use this:
<item label="Htop">
<action name="Execute">
<execute>urxvt -e htop</execute>
</action>
</item>
For gmrun, I believe you use Ctrl-Enter to have it open an app in a terminal.  At least that is what the wiki page says: https://wiki.archlinux.org/index.php/Gmrun

Similar Messages

  • Some consolation to know we're not alone

    Finding these forums at least gives us some consolation that we are not alone with the problems we are experiencing. Our 93 yo mother lives alone and tries to be fiercely independent. She lost her service last month and it took a week of calls from my sister and I to eventually have it comfirmed as a welfare case and an engineer to come and make a repair to the junction box on the pole about 200 metres from the house.
    Within a month we have had to report the line dead again. Once again we have had to chase things again and again. On neither occasion were we informed of the Priority Fault scheme until last night when my sister received a call from a senior manager at customer care after we had discussed our concerns with OFCOM, who although they said it was outside of their remit were willing to try and get some answers from BT. This call at least explained the nature of the major fault, the time delay in receiving planning permission to dig up the road and provide traffic lights etc.
    We had previously explained that our mothers call alarm was literally her lifeline as she falls on a reasonably frequent basis, and there is no mobile coverage from any network at her property. We have had to now resort to hiring a carer to stay with her as it's not possible for either of us to commit the unknown amount of time to be there for her. She can't cope with the stairs at either of our houses.
    It's disingenuous for the mods on here to say BT are at the mercy of Openreach when OR are a BT Group company and if they don't have the capacity to keep the BT network in good order in a timeous manner then the BT Group needs to address that. It's surely a red herring to say other providers have to be treated equally when all they are doing is renting the BT network.
    The fault reporting and updating website is worse than useless when there is no facility for interaction once the fault has been actioned. Seeing it updated each day with a "will be fixed by 2359" means nothing at all when that doesn't happen.
    We are now trying to approach our MP's to see if anybody can explain why BT/Openreach do not have a statutory obligation, as the other utilities do, to restore service within a set time period. Profit over people is my observation.
    Solved!
    Go to Solution.

    Sorry to hear you are having such problems - hope you get somewhere with your MP. I don't understand how BT manage to have a monopoly on the phone lines and manage to mess them up so badly all the time. In our very tiny village Openreach are here on a daily basis, as they manage to fix one phone line (average time of 2 weeks) another persons line goes out (we are thinking of having a sweepstake for who is next in line!!). It is impossible to get any answers as to when the fault will be fixed or what the problem is (I did get an interesting call from India telling me it was due to the exptreme weather we had in our area - when we were very lucky and did not actually have any problems with the weather at all!!!)
    Our problems are compounded by the fact that we also have very poor mobile reception - which BT don't seem to beleive, I would like to see them come here and try and use their mobile phones, it is just about impossible!
    Anyhow, today was the day my line was going to be fixed by.....of course it isn't.
    Mind you I am most confused (and BT won't reply to the question) but how come I have broadband but no phone when they use the same line??????

  • Javafx for console (non-gui) applications?

    Hi,
    I am interested in using the JavaFX scripting language as a general purpose language to create console (non-gui) applications. But even running the following simple program seems to initiate some sort of GUI that quickly appears and disappears. Is there anyway to run a JavaFX script in "console-only" mode?
    function run(args : String[]) {
      println("hello")
    }Thanks.

    Hi,
    Yeah, that is pretty much exactly what I did.
    I am running on Mac OS X 10.5.6, with Java 1.6.0_07 and JavaFX 1.1.0.
    When I execute the program from Terminal, everything works, however a new application appears in the menu bar while the program is executing in the console. For example, if I add a java.lang.Thread.sleep(5000) invocation to the program mentioned earlier, you will see the application in the menu bar for 5 seconds. This is not the way a normal console-based java application typically works... there should be no application in the menu bar.
    Thanks.

  • When I upgraded to ios 5, it asked me a for a new game center name.  How do I use my old game center name, since it makes me start some games over without it?

    When I upgraded to ios 5, it asked me a for a new game center name.  How do I use my old game center name, since it makes me start some games over without it?

    Carefully follow steps 1-9 outlined by wjosten in this post: https://discussions.apple.com/message/13356770#13356770.  This will not, however, avoid wiping any non-purchased media from your phone (ripped CDs, etc.) as this is only synced one way: from your computer to your phone.  You will have to either rebuild your iTunes library with this content and sync again to restore it to your phone, or purchase 3rd party software to copy it from your phone to iTunes prior to syncing (such as Touch Copy).

  • Spotlight: How to update Finder/Spot Comments without Finder/Automator/GUI?

    I am trying to find a way to update the Spotlight Comments field without using a GUI like Finder/Automator.
    OS X provides good commandline tools for reading metadata.
    % mdls myfile
    would list:
    kMDItemFinderComment = "This is David's file."
    This is good for searching.
    Now, I need to write/update the metadata instead of just reading it. E.g. I want something like
    % mdupdate kMDItemFinderComment "This is Aber's file now."
    I have searched through the documentation for Spotlight but all the examples given were on querying the file. There is no documentation for updating metadata programmatically.
    Since OS X did not provide any command line tool to update metadata, is there some C/Carbon/Cocoa API I can call from a C program to do so? If yes, then I can write a command line C program to achieve what I need.
    (or could someone point me to third party command line app to do likewise?)
    Any help would be greatly appreciated.

    Hi David,
    I noticed the same thing/shortcoming a while ago. I think what you're after is an excellent comandline tool called 'xattr'. Have a look here, you can download the source or the binary from the links on that page.

  • "Some updateing commands could not be generated ....." error

    Hi all,
    I am accessing an Oracle server on which I have READ ONLY rights. I am trying to create a DataSet. When I do so, I get an error:
    Some updating commands could not be generated automatically. The database returned the following error:
    This object has been deleted.
    1) Is this just because my access is readonly?
    2) A different message might be preferred ("code to submit updates was not created due to limited user rights" or some such.
    3) Can I use this even with the error or will I have other problems because the process did not complete correctly?
    Thanks,
    JustMe

    Can't remember how I solved this, but it is solved.

  • Execute a command without thread

    Hi....i have to execute a command in DOS and i'm using runtime java class with its method exec(). The process works perfectly but in my code i have to execute that command without a thread because the successive operations will work only if the command terminated correctly. What can i do to resolve it?

    String cmd = input.getTxtDb2Cmd();
    Process p = Runtime.getRuntime().exec(cmd);
    int r = p.waitFor();
    if (r != 0)
    throw new RuntimeException("db2 command failed");
    i've to invoke a db2 command that import a txt file in a db table. After this code i've some operations that works with this table so i've to terminate this import before execute other functions.

  • Cursor works when passing over a command without touching the Touchpad

    The cursor on my iMac regularly engages by merely passing over a command without clicking the touch pad.  All i can do is force stop the machine because the cursor performs unwanted commands before I can get the cursor to restart or Shut Down.

    tjk wrote:
    Hi s,
    First try a PRAM Reset: http://docs.info.apple.com/article.html?artnum=2238
    If no luck, try an SMC Reset: http://support.apple.com/kb/HT3964
    In some cases, the battery can interfere with a cable between it and the inside of the MBP, causing keyboard and/or trackpad issues. Shut down the MBP, disconnect the power adapter, remove the battery, take a piece of something semi-soft (like a paper napkin foldedover a couple times), place it over the cable you see in the battery compartment, and tape it down. Replace the battery and see how things go. If this works, you'll eventually want to replace the keyboard/trackpad cable (about $25 if you can do the work yourself). Note that if you go to a repair shop, they usually want to replace the entire top case assembly, which is much more costly.
    If the issue persists, shut down, disconnect the power adapter, remove the battery, connect the power adapter, boot the MBP and see if the issue persists without the battery in place (but remember to save a lot, because if the power adapter gets pulled out the MBP will immediately shut down and any unsaved work will be lost).
    Also look at the battery to see if it has any signs of deformity/bulging, in which case do not use it again (it may be pushing on the keyboard/trackpad cable and causing the issue); it must be replaced.
    First off Sir or lady tjk, I do a PRAM reset weekly and it's never fixed diddly for this issue, I'm sorry to report. The cursor going awry usually happens in Mail when composing or replying to emails, so I wondered if Mail was corrupted, but alas, no. Still happens.
    Upon inspecting the battery and the compartment, both appear normal. No bulging or binding either (a brazzier reference).
    I did the SMC reset before I read your post, but apparently not to Apple's spec so will try it again. Then will see what's up doc.

  • SHOW commands without ENABLE...?

    I have a user who has been given read-only, privilege level 1, access and wants the ability to use the various SHOW commands.  We have ACS running in this environment.  Is there a way, through ACS, to give him these commands?  
    Policy Elements/Authorization and Permissions/Device Administration/Shell Profiles has ReadOnly with all shell attributes set to not in use, default/max privilege set to 1, nothing extra in custom attributes.  Same set of submenus, Command Sets, Limited has "Permit" "SHOW" with no arguments listed.  Under Access Policies, Standard Device Admin, Authorization, I have a rule for the identity group assigned to the user in all locations and all device types that assigns the shell profile of ReadOnly and the command set of Limited.  However, the user cannot perform any such commands
    What am I missing?  Is there another way to do this?  As I said, the key is to provide the show commands without the ability to make changes to the devices.

    Yes this can be done and it sounds like you have ACS configured correctly.  However, I am not sure if all show commands will be available without entering enable mode.  For example, show interfaces is not available until after you enter enable mode.
    What AAA commands do you have running on the devices?
    I am doing pretty much what you're doing but I allow the user to enter enable mode and then restrict them to a hand full of commands.  Also, I have ACS controlling the enable password on a per user basis.

  • Executing commands without connecting to a specified database

    Hello...
    I want to create a new database using some sql commands
    I already have the commands, the problem is that I need to send these commands to the Oracle itself (without connecting to a specified database, the same as the SQL*PLUS /NOLOG option)
    I tried many variations of connection strings, but non of them works (whenever I tried connecting to the main machine, I got the obvious error: ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA)
    how can I connect directly to the main Oracle?
    (until now, our product worked with sqlserver, which has the "master" db integrated, and all commands can be performed through it... as far as I know, oracle doesn't have something like this)
    thanks in advance
    Nissim

    I think you should ask your dba to give you the sid first.
    and he should create the schema/user to connect to.
    or you can ask him to give you system password to create a user and grant it permission.
    then only you can connect to the oracle.
    now after connecting to the oracle you have the database script(sqlserver and oracle syntax is little different).
    you can say database in sqlserver is equivalant to schema in oracle.

  • Is there sort of SQL command that will make a sum

    Is there sort of SQL command that will make a sum of some of the data in one column provided that the data in other columns are the same -- for example, all of the sales from one month added up?

    user532580 wrote:
    Is there sort of SQL command that will make a sum of some of the data in one column provided that the data in other columns are the same -- for example, all of the sales from one month added up?use SUM() function
    post CREATE TABLE & INSERT statements so we have some sample to show actual solution

  • Make gui screen feel like web on portal

    Hi all:
        I hear there is some technique that can make Gui screen like Web on Portal , could you please tell me how ?
    thank you very much
    Edited by: jingying Sony on Apr 29, 2010 10:28 AM

    Hi,
    If i am not wrong , the think wich you are looking is called as SAP WEBGUI ( SAP INTERGRATED ITS )
    Refer the below lnik for how to activate and use integrated ITS.
    http://wiki.sdn.sap.com/wiki/display/EP/12ITSWebGUI-Activation(BackEnd)
    http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/3d/b5f9c2ea65c242957ee504ca4a37a9/content.htm
    www.arlati.ch/knowhow/archive/Integrated_ITS_WebGui.pdf
    Thanks
    Anil

  • I've lost some keyboard commands and can't get them reset!

    I seem to lost some keyboard commands in Photoshop CC. For example... I used to be able to use the Spacebar to temporarily access the Hand Tool - no matter what tool was selected. Now it doesn't do anything. I used to be able to use "Command + Spacebar" to temporarily access the Magnify Tool. This no longer works either. I've reset Default Preferences with no luck. I've also looked through the Keyboard Shortcuts & Menus screen, but it will only let me use (or change) a single keystroke to access a tool. What happened to the ability to TEMPORARILY ACCESS specific tools? I can still use the keyboard combinations mentioned above on my computer at home, but can no longer use them on my computer at work. Does anyone have any suggestions?

    You said, "I've reset Default Preferences." Are you referring to Cmd+Opt+Shift? If not, try that reset: Close Photoshop. Now press and hold Ctrl+Alt+Shift as you initiate Photoshop startup. Select "yes" when asked if you would like to reset.
    Benjamin

  • How to run batch programs using SUBMIT command without any interaction need

    Hello ABAP gurus,
    I have created a batch program in SE38 which calls many other SE38 Programs (Reports).
    I have used the command SUBMIT to call the sub programs. There are about 15 sub programs that this main batch program is calling.
    It works fine, but after calling each subprogram it stops and I have to manually click on 'Back Button' in green on the sap screen to run the next program in the list. Like this I have to do 15 times to run all the programs in the batch.
    Is there a way to avoid this manual intervention and make the program run all the sub programs on its own.
    Your feedback will be highly appreciated.
    Thanks
    Ram

    Thanks Sampath for the response.
    Yes I am using the option "AND RETURN". So it is coming out of each sub program, and it is at this stage it waits for me to click on 'backward green arrow' to continue to the next.
    Here is the code I have used
      SUBMIT Z_AS_BI_F0005_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_DIVISION_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_COMPANY_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_CUSTOMER_EXTRACT WITH  S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_BRANCH_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_BUS_UNIT_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_ADDRESS_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_CUSTOMER_GROUP_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_GROUP_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_PMT_TERMS_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_REGION_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_TERRITORY_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
    Any other suggestions or feedback will be appreciated.
    Tks
    Ram

  • I have noticed that Safari does not support some HTML commands on apple operating systems. Can anyone help with this issue please?

    I have noticed that Safari does not support some HTML commands on this operating platform. Can anybody throw any light on this issue please?

    Examples.

Maybe you are looking for