Shortcut through terminal

Hi
I want to run a shortcut execution through terminal.
For example, W+v = Vim.
<keybind key="W-v">
<action name="Execute">
<command>(what do i put here??)</command>
</action>
</keybind>
I've got this far, but don't know what ill type in <command>, what do i type here?
Thanks

xterm -e vim
urxvt -e vim
and so on, depending on your terminal.
** Also, please do read the manpages.
Last edited by Peasantoid (2010-03-10 21:32:15)

Similar Messages

  • Hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute

    hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute...
    i tryed diffrent commands such as diskutil eraseDisk JHFS+ Disk1
    diskutil list , wont show up my harddrive , i now its functionally cause it shows up in disk utility with name and i can get info about it , but everything is greyed out can only switch between "erase , partition , recover , Raid ,....
    when i click the apple in the top left corner the whole menu is greyed out... what to do ?  help me please
    Sincerly AppleNoob92
    p.s i have no experience in apple imac's at all never used before, but im kinda windows nerd so computers i understand but this imac make my insane, cant seem to find any solutions anywhere on the WWW....

    Your HD may be crashed, so you probably should use the oringinal install discs to run Apple Hardware Test in extended mode. If error codes appear this confirms a hardware failure. In addition you cannnot repair the HD using Disk Utility from the startup disk, you have to use the origninal Install discs that shipped with the computer or the most up-to-date version of OS X on a disc that you have.

  • Hibernate macbook pro through terminal hibernatemode 25

    Hibernate macbook pro through terminal hibernatemode 25 on mountlion does it harm system

    The real lesson is: Don't do something you know nothing about.
    Open the Terminal and enter or paste:
    pmset -g
    Press RETURN. This will list your current settings. You are interested in the setting named "hibernatemode." Most likely you will find it is "3". If so then enter or paste:
    sudo pmset -a hibernatemode 0
    sudo pmset -a autopoweroff 1
    Press RETURN. Enter your admin password and press RETURN again.

  • SSL connection works through terminal and Firefox only

    I have issue with SSL connection.
    It works through terminal and Firefox only. Everything else requiring SSL is down including App Store. I can't fix the problem by updating software, nor reinstalling as softwareupdate and hdiutil mount patch you via SSL at the end.
    No apparent reason.... It all worked fine last night.
    Does anyone know what is it and how to fix it?
    Thanks.

    MurphyCooper,
    this might be worth a shot: boot your MacBook Pro into Recovery mode by holding down a Command key and the R key as it starts up. Once the Mac OS X Utilities menu appears, select Disk Utility. On the left-hand side of the Disk Utility window, select your internal disk’s boot partition (typically called “Macintosh HD”). On the right-hand side, press the Verify Disk button if it’s not greyed out; if it is greyed out, or if it reports that errors were found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu to restart in normal mode. Has this made any difference?

  • Installing Client Combo 10.7.4 through Terminal?

    This is totally unacceptable!! I've had this Thunderbolt Update problem since Tuesday morning and still pulling my hair out from it. I have run out of options in fixing this. Ive been using SL for over a year and only upgraded to Lion last week before this update screwed up my Mac. I can't reinstall Lion from disc recovery because some else installed it and I don't have the apple id to re download it. My other problem is I don't have another mac to do the target disk mode. I have 700gb of unbacked up data and I can't lose everything. I have the client combo update 10.7.4 on disk and I downloaded it and have it in my downloads folder. My trouble is I've tried mounting it from the disk and updating but it's not working. I've also tried from the downloads section but im having a lot of trouble with terminal. Can someone kindly help me mount and update it through terminal in startup because the directions I've followed hasn't helped me. Shame on you apple for infecting us with such a small screw up but causing massive problems. Release a fix to go back to previous settings!!

    Have you got issues? I've clearly said it's not and it was installed just to check out Lion and see how it was. Your making speculations about something that's not so if your not going to help don't say anything. I own a $3000 Mac as if a $29 operating system is going to be much and if they do things right maybe they will deserve it then. If Apple had released a working update with no bugs everyone else having the same problem would be stress free. 

  • How do I list local shared computers through terminal?

    I'm looking for a way to see Macs on the local network that have file sharing turned on that i could potentially connect to, through terminal.  I've looked into mount and showmount, but i haven't had any luck.  Any help is appreciated!

    OK; an additional requirement. Scripting.  Quoting from the dns-sd man page:
      The dns-sd command is primarily intended for interactive use.  Because its command-line arguments and output format are subject to change, invoking it from a shell script will generally be fragile. Additionally, the asynchronous nature of DNS Service Discovery does not lend itself easily to script-oriented programming.
         For example, calls like "browse" never complete; the action of performing a "browse" sets in motion machinery to notify the client whenever instances of that service type appear or disappear from the network. These notifications continue to be delivered indefinitely, for minutes, hours, or even days, as services come and go, until the client explicitly terminates the call. This style of asynchronous interaction works best with applications that are either multi-threaded, or use a main event-handling loop to receive keystrokes, network data, and other asynchronous event notifications as they happen.
         If you wish to perform DNS Service Discovery operations from a scripting language, then the best way to do this is not to execute the dns-sd command and then attempt to decipher the textual output, but instead to directly call the DNS-SD APIs using a binding for your chosen language.
         For example, if you are programming in Ruby, then you can directly call DNS-SD APIs using the dnssd package documented at <http://rubyforge.org/projects/dnssd/>.
         Similar bindings for other languages are also in development.
    Does that help get you where you want to be?  Calling into available Ruby or Python DNS-SD libraries would get you where you want, and there are other choices.  Off-hand, I don't know of a bash-friendly interface, but there may be one around.
    And stepping back from this request slightly, there are already distributed-management packages which allow connections to remote servers, and managing multiple servers as a unit.  With Apple, Apple's ARD tool is one solution, and there are other packages available for Mac OS X and Mac OS X Server and other Unix platforms.
    I'd also suggest considering ssh, as telnet is insecure, and as ssh can perform certificate-based and passphrase-based logins.

  • Disabled Mac Hotkeys on iTunes through terminal

    So I had spotify and wanted to control spotify with the hotkeys instead of it getting confused with iTunes.  I disabled the hotkey control through terminal and all went well.  Now, that I am going back to iTunes, the hotkeys do not work.  Volume up and down go to the dashboard and such.  Does anyone have the code that will re-enable the hotkey support that I can enter in terminal?

    A phono input expects a much different signal than a tape input. The signal from the AirPort Express (AX) is much greater amplitude and has a different equalization curve than a phono signal.

  • Fix another users settings through Terminal

    I screwed up.
    I was trying to increase the max scrolling speed through Terminal (and didn't fully understand the command...).
    i typed:
         defaults write -g com.apple.scrollwheel.scaling -5
    and should have used
         defaults write -g com.apple.scrollwheel.scaling -float <float>
        ...I think.
    Logged out. Now I can't use that account. When it loads I get the "must restart" screen.
    Can I fix this screw up from another user account in Terminal? Or any other way?
    Power Mac G5 Quad, 10.5.8

    Fixed. Deleted the globalpreference.plist for that user.

  • Launcher/shortcut for terminal new-window entries?

    Is there any way to either create a keyboard shortcut, or icon shortcut for launching the entries in the terminal menu "shell|new window" ?
    I have several entries in there, and have ssh commands in there to connect to my work machines through a tunnel, such as:
    ssh -l jsmith dmz.foo.com -t /import/local/bin/ssh -l jsmith myhost
    I would like to be able to launch individual ones directly, either through the keyboard or icons.
    Thanks,
    -jamie

    Try iTerm
    <http://iterm.sourceforge.net/>
    You can assign *Command-Control-LetterOrNumber* to each of your iTerm bookmarks.
    For example, I have an ssh based iTerm bookmark that connects to my Linux development system at work. I want 6 new sessions, so I just hold Command-Control and press the letter 'L' 6 times and I get 6 new iTerm tabs each connected to my Linux development system.
    For Terminal, you should be able to configure a hotkey via System Preferences -> Keyboard & Mouse -> Keyboard Shortcuts.

  • Keyboard shortcuts in terminal.app for moving to next and previous tabs

    Hi,
    In Terminal.app, if you click on the Window menu item, it tells you that the keyboard shortcuts for moving to the next and previous tab are ⌘} and ⌘{.
    When I try to use those shortcuts however all I get is it beeping at me.
    The only way I've found to move from tab to tab is ⌘-shift--> and ⌘-shift-<-
    What do I have to do to get the ⌘} style shortcuts working??
    Thanks
    H.

    http://www.google.com/search?client=safari&rls=en&q=terminal+shortcuts&ie=UTF-8& oe=UTF-8#hl=en&sugexp=les%3B&gs_nf=1&gs_mss=mterminal%20shortcuts&pq=terminal%20 shortcuts&cp=2&gs_id=8&xhr=t&q=mac+osx+terminal+shortcuts&pf=p&safe=off&client=s afari&rls=en&sclient=psy-ab&oq=materminal+shortcuts&gs_l=&pbx=1&bav=on.2,or.r_gc .r_pw.r_qf.&fp=b610fb1514df2529&biw=1008&bih=1008
    Here are some to get you going:
    Ctrl + A Go to the beginning of the line you are currently typing on
    Ctrl + E Go to the end of the line you are currently typing on
    Ctrl + L Clears the Screen, similar to the clear command
    Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
    Ctrl + H Same as backspace
    Ctrl + R Let’s you search through previously used commands
    Ctrl + C Kill whatever you are running
    Ctrl + D Exit the current shell
    Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
    Ctrl + W Delete the word before the cursor
    Ctrl + K Clear the line after the cursor
    Ctrl + T Swap the last two characters before the cursor
    Esc + T Swap the last two words before the cursor
    Alt + F Move cursor forward one word on the current line
    Alt + B Move cursor backward one word on the current line
    Tab Auto-complete files and folder names

  • Cant connect through icon goes through terminal why

    use to be able to connect with the fox/world icon now I can not, and a friend made it when I connect I have a desk top icon that goes through the terminal. when I use the fox/world icon it says "could not launch application" it also has this in the box Failed to execute child process "/home/.directory" (Permission denied)
    WHAT THE HECK IS GOING ON
    thanks for any help that you can give
    sincerely
    Rose Jeffers

    use to be able to connect with the fox/world icon now I can not, and a friend made it when I connect I have a desk top icon that goes through the terminal. when I use the fox/world icon it says "could not launch application" it also has this in the box Failed to execute child process "/home/.directory" (Permission denied)
    WHAT THE HECK IS GOING ON
    thanks for any help that you can give
    sincerely
    Rose Jeffers

  • Add user to permissions through terminal

    This is killing me. Seems like it should be such a simple task in the terminal but I just can't figure it out.
    What I would like to do is to give another user on my computer write permissions to a file that I own.
    I have tried several different things to no avail. Anyone have ideas? I know how to change the owner of the file, change the group or change my permissions but I just can't figure out how to add another user and set their permissions.
    Thanks for help!

    I am not doing this to one file. I know how to do this from the UI but I am trying to write a script to loop through the files in a folder and allow other specific users to read and write the files.
    Here is what I have tried
    chmod -R 775 nameOfFile
    ## This only changes the permissions for me as the admin
    chgrp -f group nameOfFile
    ## this only changes the group that has access
    chown newOwner nameOfFile
    ## this works but just removes me from ownership instead of adding a user that has read capabilities
    Thanks for your help

  • Disable bluetooth through terminal?

    I manage a couple of labs through ARD, and I would like to know if it is possible to turn off bluetooth using terminal. I can turn off airport, but I've been searching for such a command with no luck.
    Bonus, is there also a way to turn remove the bluetooth icon from the menu bar using terminal?

    I've been looking into this myself, here's some more commands to add to the list:
    defaults read /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState
    #read the current pref, returns '0' for off and '1' for on.
    All of the following will require sudo if run from the command line:
    defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 0
    #set bluetooth pref to off
    defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 1
    #set bluetooth pref to on
    killall blued
    #kill the bluetooth server process
    launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
    #unload the daemon
    launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist
    #reload the daemon
    launchctl start com.apple.blued
    #restart blued daemon

  • How to run an applescript through terminal

    Hi Friends,
    I want to run an apple script by terminal. Any ideas how can we do it?
    I tried using the below code in terminal as
    osascript script_name.scpt.
    But, it returns an error.
    Thanks for your help!
    Regards,
    Abhishek

    Hi,
    I am sorry for not being explicit in my earlier post.I wanted to know basically what is the syntax of running an applescript through my terminal.
    Below is the errror message when I use the below syntax in terminal
    osascript script_name.scpt
    2012-10-30 11:34:43.667 osascript[2388:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types:  dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found.  Did find:
              /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
    osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
    2012-10-30 11:34:43.669 osascript[2388:903] Error loading /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScript ingAdditions:  dlopen(/Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QX PScriptingAdditions, 262): no suitable image found.  Did find:
              /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPS criptingAdditions: mach-o, but wrong architecture
    osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/QXPScriptingAdditions.osax" declares no loadable handlers.
    script_name.scpt: execution error: No user interaction allowed. (-1713)
    Hope it helps!
    Thanks,
    Abhishek

  • How do i script ssh login through terminal?

    I'd like to create a script that will ssh in to my linux server and restart vncserver. I can't figure out how to enter the password though. In powershell, you have to enter it as a secure string, but I don't know if it's the same in Terminal. So far I have
    #!/bin/sh
    [email protected]
    But no matter what I put on the next line it prompts for a password. Any help is appreciated.

    Solved my own problem through much travail. Using Applescript:
    tell application "Terminal"
         activate
         set currentTab to do script ("ssh user@host")
         delay 1
         do script ("vncserver -kill :1") in currentTab
         delay 1
         do script ("vncserver") in currentTab
    end tell
    I had to set up a public key pair so I wouldn't get prompted with a password, which would have solved my original post. Once I verified the applescript, I saved it as an application on my desktop, so now I can restart the vnc service on my server when it craps out (frequent).

Maybe you are looking for