Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dslist = %x(#{DSCL} . -list /Users).split("\n")
- dslist.reject! { |user| user[0].chr == "_" }
- dslist.each do |user|
- user_plist = File.expand_path(tmp_path + "/dslocal/" + user + ".xml")
- puts "Executing #{DSCL} -plist . -read /Users/#{user}" if @options.verbose
- plist = %x(#{DSCL} -plist . -read /Users/#{user})
- # user_plist.puts plist
- File.open(user_plist, 'w') {|f| f.write( plist ) }
- end
Add Comment
Please, Sign In to add comment