Command line confusion

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

  1. ironhand41 macrumors newbie

    Jan 29, 2011
    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 - "" - that will modify my Win 7 MBR to allow ahci drivers to load. But for the life of me, I cannot get the "" script file to actually execute. As per instructions, when I type "sudo" followed by a space and then drag "" into the terminal window, all that happens is that the path to 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

    Mar 1, 2010
    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

    Jun 26, 2010
    Try this.

    Open the terminal first.

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

    Then type "sudo chmod 777".

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

    Then type "sh ./"

    That should run your script.

Share This Page