Clear Safari Cache on login

FastGM3
Contributor

Hi,

is anyone clearing safari cache in a policy? I'd like to clear it on every user login probably something that takes advantage of the $3 variable.

Thanks for anything you may provide!
Chuck

1 REPLY 1

FastGM3
Contributor

This seems to work if anyone else was looking for something

#!/bin/sh

#Remove Safari Cache

/bin/rm -rf /Users/$3/Library/Caches/com.apple.Safari