Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

amy.damnit

macrumors newbie
Original poster
Jan 8, 2009
20
0
Illnois
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
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
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.
 

amy.damnit

macrumors newbie
Original poster
Jan 8, 2009
20
0
Illnois
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.