Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Preferential Treatment - Test XML preference files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Preferential Treatment - Test XML preference files
Authored by: pyptoo on Jun 24, '04 02:07:36AM

I get this "/usr/bin/sudo: Argument list too long" message in Terminal...
Why is the argument list limited ?



[ Reply to This | # ]
Preferential Treatment - Test XML preference files
Authored by: geohar on Jun 24, '04 05:33:43AM

There is a maximum argument list length in the terminal. Try doing ls ~/Library/Preferences/*.plist

If there's tonnes (which I'm guessing there is), you may be able to get arround the limit by doing

cd ~/Library/Preferences/
plutil -s *.plist

That will at least remove the need for the prefix... If that doesn't work (boy you must have tonnes of preference files) then you'll have to split the list in two or more.



[ Reply to This | # ]
Preferential Treatment - Test XML preference files
Authored by: gdelfino on Jun 24, '04 09:55:43AM
Try using the xargs command. There is a good tutorial about it at about.com.

[ Reply to This | # ]
Preferential Treatment - Test XML preference files
Authored by: roncross@cox.net on Jun 24, '04 01:24:45PM

You can redirect as follows:

sudo plutil -s ~/Library/Preferences/*.plist > ~/Desktop/myplist.txt

Instead of having the output on your terminal screen, just save it to your Desktop and view it in the text editor. The file name will by called myplist.txt

thx
RLC


---
rlc



[ Reply to This | # ]