Unix/OS X syntax question

Discussion in 'Mac Programming' started by amy.damnit, Jan 8, 2009.

  1. amy.damnit macrumors newbie

    amy.damnit

    Joined:
    Jan 8, 2009
    Location:
    Illnois
    #1
    I am helping the Audacity team do debugging on Macs.

    A developer wants me to run this:

    Code:
    vm_stat 10 >output.txt
    How do I change this syntax so I can save the "output.txt" file in a specific location on my HDD?

    Thanks,


    Amy
     
  2. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    In general UNIX syntax, you just need to provide the complete path to the file, for example:

    Code:
    vm_stat 10 > /Users/joesixpack/documents/vmlogs/output.txt
    or whatever the path is. Here it means you want to make the file in the vmlogs directory, which is under the documents directory, etc. If you use the terminal (command-line) to navigate to the location where you want the file, the pwd (present working directory) command will give you the complete path, then add on a forward slash and the file name you want.
     
  3. chris200x9 macrumors 6502a

    Joined:
    Jun 3, 2006
  4. amy.damnit thread starter macrumors newbie

    amy.damnit

    Joined:
    Jan 8, 2009
    Location:
    Illnois
    #4
    Thanks for the reply. That is exactly what I needed!

    Say, I have two non-related nebie questions...

    1.) Why does MacRumors seem to log me out of the website like every 20 minutes?? :confused:

    2.) Why didn't I get an e-mail telling me you responded to my original post?? :confused:

    Thanks,


    Amy
     

Share This Page