Fluxbox/keys - two command using one combination of keyboard keys

I want to run 2 commands using pressing alt+v, it should be done using this command in fluxbox keys:
Mod1 V :MacroCmd {gksudo pon vpn-doma} {gksudo sh /home/r-c/.vpn-doma-routy}
but this doesnt work. I want to first execute this command: gksudo pon vpn-doma  and after executing this: gksudo sh /home/r-c/.vpn-doma-routy
When I execute it separately in terminal, it works. ALso I restarted fluxbox enviroment. Can you help?

Are you now using a macro with {exec <command 1>} {exec <command 2>} ?
That may start them at the same time, but in the command I put above, the second command should not start until the first is complete (and returns true/success).
You could add delay, if needed, as follows
gksudo pon vpn-doma && sleep 1 && gksudo sh /home/r-c/.vpn-doma-routy
Edit: specifically
Mod1 V :exec "gksudo pon vpn-doma && gksudo sh /home/r-c/.vpn-doma-routy"
Ditch the macro, it should not be needed.
Last edited by Trilby (2012-03-25 15:45:21)

Similar Messages

  • How to send two commands within one URL call

    Hey gurus,
    I was wondering if it is possible to concatenate two commands in one url call:
    SAPBWOpenURL(SAP_BW_URL_Get() &DATA_PROVIDER=DATAPROVIDER_1
    &CMD=EXCHANGE
    &IOBJNM_2=GROUP1
    &IOBJNM_1=GROUP2
    &FILTER_SIGN_1=E
    &FILTER_VALUE_1=
    &CMD=REMOVE_FILTER
    &IOBJNM=GROUPX);
    The URL should exchange 2 infoobjects and remove the filter of one specified.
    Can anyone help me out?
    Thanks,
    Andreas

    Thank you Chandran - you saved my day
    Will dedicate this day to you
    Cheers,
    Andreas

  • Can I daisy chain two mac pros so that I'm using one monitor and keyboard

    Can I use two mac pro's with one monitor, keyboard & mouse? The two different machines have two different operating systems (Snow Leopard / Lion). One machine is brand new and the other is 5 or 6 years old.
    I want to use both machines in tandem so that I can leave something to render while I work on something else.

    KVM is an answer -- maybe.  I use one for two machines to share one of my monitors (a VGA) and my keyboard (the second older machine seems to have sleep problems if I share a usb mouse on the kvm however).
    The trickiest part of choosing a kvm is trying to find one that can handle the video; one that can handle the required bandwidth, and the connections.  If one computer uses, say DVI, and the other mini-displayport, then you need to figure out which kvm can handle that with one (or both) of the machines using adapter(s). 
    You said one of the machines is brand new.  Then it probably has thunderbolt.  So you would need a mini-displayport, dvi, or vga adapter depending on the monitor.  That means the older machine will need a similar connection since whatever kvm you get will have the same kind of ports for both inputs and its output.
    A wild card here (at least in my mind) is if the newer machine has thunderbolt.  While a mini-displayport display can be plugged into a TB connection, it is not clear that such a thing will work through a kvm.  That is unknown territory I think at this point.

  • Reserve two iphones using one apple id?

    so i am wondering can i use my apple id to reserve two iphones using my iphone4 apple store app to reserve when iphone5 comes out?
    i want to reserve two iphones under my account when iphone5 comes out, can i do that?

    No one here knows especially since the iPhone 4S was released less than 6 months ago and Apple has not announced an iPhone 5.
    Planning ahead is one thing but you need to wait until Apple makes an announcement.

  • HT204053 Can two people use one account and get face time to each other?

    I'm getting a new ipad and I'll be handing over my ipad 3 to my Hubby. I was wondering if we could both share different IDs in the same account and be able to face time each other from my account. Most of his apps where purchased on my itunes for the ipod he uses from my account. Will I need to make him a separate itunes account?

    LoraJabot wrote:
    I'm getting a new ipad and I'll be handing over my ipad 3 to my Hubby. I was wondering if we could both share different IDs in the same account and be able to face time each other from my account. Most of his apps where purchased on my itunes for the ipod he uses from my account. Will I need to make him a separate itunes account?
    You don't have to create another account - I facetime and imessage with my wife's ipad all the time using one apple id. All you do is on one device check mark one email address in " send and receive " area and on other ipad another adress. So I do that from ***@hotmail to ***@icloud. BTW imessage and facetime have nothing to do with icloud or itunes and to have different id's for icloud would be my recommendation as well.

  • Can two persons use one skype subscription account...

    Hi, I have a question about the subscription account. Can more than one person use one skype subscription account to make call at the same time? Thanks.
    Solved!
    Go to Solution.

    zhou888p wrote:
    Can more than one person use one skype subscription account to make call at the same time? Thanks.
    No. That's not possible, I'm afraid.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • If two people use one computer, but we have separte itunes accounts, Apple ID, and icloud will my apps I get be stored in their account too since we are using the same computer?

    If two people share the same computer, but have separate itunes account, Apple ID, and icloud and one of them downloads an app will it also go into the other persons account since y'all use the same computer

    If you  have separate user accounts on the computer, then your downloaded apps are stored in your iTunes Library. See the following for dealing with having multiple users on the same computer: How to use multiple iPhone, iPad, or iPod devices with one computer.
    Using More than One iDevice on the Same Computer
    This applies mainly to couples who are adding another device and do not want their email, messages, etc. being duplicated on both devices. To begin read: How to use multiple iPhone, iPad, or iPod devices with one computer. You need to establish a separate Apple ID and password for whomever will use the new iDevice. See Apple - My Apple ID and Frequently asked questions about Apple ID. The easiest way is to do this on the computer using iTunes: iTunes- How to set up an Apple ID within iTunes.
    On the computer create a new user account for the person with the new iDevice. This will be the user account that person will always use. He/She will no longer use the other user account. This way that person will have a separate iTunes Library
    Start by transferring the new device(s) to a new account along with all your data.  Save any photo stream photos that you want to keep to your camera roll (unless they are already in the camera roll) by opening your Photos app, tap on Albums icon at the bottom. Now, tap on My Photo Stream album; tap Select; tap on the photos you want to select;, tap the share icon (box with upward facing arrow) in the lower left corner; then tap Save to Camera Roll.
    If you are syncing notes with iCloud that you want to keep then you need to open each of your notes and email them to yourself. Later you can copy and paste the text into new notes created in your new account.
    Tap on Settings > iCloud > Delete Account (only deletes it from this device, not from iCloud; the person keeping the current account will not be affected,) provide the password to turn off Find My Phone and choose Keep on My iDevice when prompted.  Sign in with a different Apple ID to create your new account. Choose Merge to upload your data.
    Once you are on separate accounts, you can each go to icloud.com and delete the other person's data from your account.
    Note: The essence of the above was created by user, randers4. I
    have made substantial changes to improve readability and syntax.

  • Two computers using one ipod

    I have two computers. Laptop and Desktop, both of them are PC platform an I have an 30GB iPod video (newest one). I am currently using to sync iPod with laptop. My question is if I can use iPod simulatelously (not sure about spelling :)) with desktop. I need this because I have a most of videos on my desktop HDD.

    You can't "sync" that is automatically update an iPod from multiple libraries or computers. If you want to connect and use an iPod on more than one computer you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply.
    Using iPod with Multiple computers
    Managing content manually on iPod

  • How to use KM to view two iViews using one iView link

    Hi Experts,
    In my project, we have created one folder called 'Admin'. We have created one iView called Report. iView 'Report' has been assigned to folder 'Admin'.
    The structure looks like as shown below:
    ===========
    Admin
    . Report
    ===========
    Here when user clicks on Report, iView 'Report' gets open. We want to show another iView when user clicks on . symbol.
    Any idea how we can do so?
    I know that this can be done. As in some other project I have seen that it works. In other project structure looks like
    =============
    Admin
    'some icon' Report
    =============
    Here when user clicks on Report, Report iView gets open. When user click on 'some icon' like * symbol another iView gets open. This can be done using some of the features of SAP EP KM.
    Pls help.
    Regards,
    Brian
    Edited by: Brian on Jun 11, 2008 9:29 AM
    Edited by: Brian on Jun 11, 2008 9:31 AM

    Hi Brian,
    Its possible.
    Follow the procedure:
    Create a HTML page in KM, which will hold 2 links. Give names to these links and href as follows.
    Link1: http://<host>:<port>/irj/portal/iview1
    Link2: http://<host>:<port>/irj/portal/iview2
    Create KM Document iView (ABC) and provide path to document of this page.
    Now create another page in PCD (XYZ), and 2 iviews.
    Assign these 2 iViews on this page, but make them invisible on page.
    In iView properties change the property Quick Link as follows (as given above):
    for iView1: iview1
    for iView2: iview2
    Now open your role, create folder inside, and add KM Document iView (ABC). Open the properties of this iView in role and change the property, Initial state as Open, now it will open the KM document iView (ABC) in detail nav, and for opening page (XYZ) you must assign page to role, but make Invisible in Navigation areas to YES
    i guess this solves your issue.
    regards
    Kedar Kulkarni
    reward points for useful answers

  • Two person using One Account same time with differ...

    2 days ago when i using skype chat with my friends , my girlfriend login to my skype account from different ip and watched all our conversation than sended to me ? How it can be.? Where is the privacy? 1 account using two person at the same time 1 is using other is watching from different ip how?

    I think when you shared your password to your girlfriend, that is when you lost your privacy.  
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Two people using one account in Mountain Lion

    My wife and I had a shared account in Snow Leopard.  In Mountain Lion, the accounts seem to be more customized for an individual, what with Notifications and iCloud and all.  I just got our new iMac last night and am configuring ML now for the first time.
    My question: is there any point to having an account on Mountain Lion called "JohnandMary" or whatever (like I did on Snow Leopard) that lets us both have access to our notifications and stuff?
    We often will be using the same documents and iTunes library and all kinds of other things, but obviously our personal messages and notifications would not be the same as each other.
    What's a married couple to do?

    No, I know how to make a new user.  Sorry if I was unclear.  I guess the real question is: is there a way to have one single "user" that incorporates both my wife's and my notifications?  I would like us to both share one user account so we dont have to constantly shift back and forth to access our documents.  Plus, our iTunes and iPhoto libraries are used by us both so I wouldnt want to split those up.

  • Moving two Jlist using one scrollpane

    i had taken two Jlist both have the JscrollPane
    i want to atoScroll to one Jlist when other Jlist is
    Move up and down
    Rahul

    double post
    http://forum.java.sun.com/thread.jspa?messageID=4132094

  • Two computers using one Cinema display

    Howdy, is there a nice way to switch source for my Cinema Display?
    I currently have an Air that i just connect to the cables of my cinema display when i come home but I have ordered an iMac that i wan t to keep connected to the cinema display but when I need to I would like to connect my Air without unplugging my iMac.
    I read an old thread with same name but it was closed and had no apparent solution.
    - Rautakanki

    KVM switches are not the most aesthetically pleasing devices. You'll just have to keep looking until you find one that appeals to you. Last I looked Belkin seemed to make the least grotesque models. No clue if they are still making them though.

  • Two people using one computer with Mail

    What's the best way to only show my email and not my wife's on our macbookPro, like I do on my iPad?

    If you don't ever want your wife's email on the MacBook, remove that account from Mail. If you each want to see only your mail account, you should create separate Mac logins using System Preferences - Users and Groups. Then set up your mail account in the separate Mac accounts.
    Matt

  • Two users using one Time Capsule from one MacBook

    My wife and I both have separate accounts on my MacBook. I'm using the TimeCapsule as a network drive. When I log in to my MacBook account, I can access the Time Capsule. When my wife logs in later, she can see the Time Capsule in Finder, but is not allowed to access it. If I then switch back to my account and dismount the Time Capsule, my wife can access it.
    If my wife logs into her account first, it's the other way around.
    So I don't think there's anything basically wrong; we can both access the Time Capsule, as long as we're the first to log in to the MacBook.
    I have enabled filesharing on the Time Capsule, with Time Capsule password (so not with accounts or disc password).
    I would like to be able to access the Time Capsule, even when my wife is already logged in.
    Is that possible?

    Same problem here. From another thread (http://discussions.apple.com/thread.jspa?messageID=12839145&#12839145) I get the impression it cannot be done, but surely there's a workaround?..

Maybe you are looking for

  • Getting error while running jar file

    Hi, I am getting below error while running the jar file "Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdeveloper/layout/XYLayout:" I have created a simple ADF desktop app in which i am displaying the frame.I created the jar from

  • Log into itunes app store but when i select a  catagory nothing shows up

    when i select a specific catagory in the itunes app store nothing apprears

  • My First Servlet

    I downloaded the "tomcat" software and installed it. I then added the following "environment variables" in Win XP. CATALINA_HOME D:\Program Files\Java\jakarta-tomcat-4.0.6 CLASSPATH D:\Program Files\Java\jakarta-tomcat-4.0.6\common\lib\servlet.jar JA

  • Help me understand my up-stream speed

    Despite having excellent down-stream speed, I have been having problems with insufficient up-stream bandwidth for a long time. This causes me problems with a Vodafone Sure Signal to the point that I can't really use it for my mobile calls unless ther

  • C project in labview

    Hello, i have one project developped using c code, this project is composed with 4  .c files ( each one with its .h file), in the 5th file i have the main()  function with other functions, before asking here , i have been reading this http://www.ni.c