Command line confusion

Discussion in 'Mac Pro' started by ironhand41, Feb 6, 2011.

  1. ironhand41 macrumors newbie

    Joined:
    Jan 29, 2011
    #1
    I'm installing Win 7 on a Mac Pro 3,1 with Bootcamp and am following the directions given on another MacRumors thread to allow the use of ahci drivers. Part of the process is to run a script file - "ahci-1.sh" - that will modify my Win 7 MBR to allow ahci drivers to load. But for the life of me, I cannot get the "ahci-1.sh" script file to actually execute. As per instructions, when I type "sudo" followed by a space and then drag "ahci-1.sh" into the terminal window, all that happens is that the path to ahci-1.sh is printed following sudo and the space. But the script does not run. I don't know what I'm doing wrong. Are there other ways to make a script file execute from the command line?
     
  2. linuxcooldude macrumors 68020

    Joined:
    Mar 1, 2010
    #2
    I'm a lot better at linux terminal, but they are similar. Try sudo ./ or sudo sh ( A space between ./ & sh ) and then the name of the file and see if that works.
     
  3. minifridge1138 macrumors 6502a

    Joined:
    Jun 26, 2010
    #3
    Try this.

    Open the terminal first.

    The type "cd <PATH>"
    Replace <PATH> with the location of the script.

    Then type "sudo chmod 777 ahci-1.sh".

    This will give you read/write/execute permissions (it also gives every other user the same).

    Then type "sh ./ahci-1.sh"

    That should run your script.
     

Share This Page