The ln command doesn't require a password prompt.
The ln command doesn't direct the .cache file to the /tmp folder.
I found the chrome cache files. They were where they were suppose to be. Why they didn't show up the last time I looked I have no idea.
The chrome cache purge shutdown script works when shutting down. :Yahoo!:
There are no .wh. files resulting from deleting the cache files when shutting down.
BTW My code changes.
Code: Select all
CCACHE=/home/guest/.cache/google-chrome/Default/Cache TCACHE=/tmp/google-chrome/Cache/ #set -x; # Diagnostic output on!! if [ ! -d $TCACHE ]; then mkdir -p $TCACHE [[ ! -d $CCACHE ]] && mkdir -p $CCACHE sudo mount --bind $TCACHE $CCACHE # ln -sf $TCACHE $CCACHE fi set +x; # Diagnostic output off!!
My full script invokes sudo 3 times and thru 3 password prompts. Normally if a script requires 1 password prompt I use ktsuss for the whole run but with chrome google doesn't allow chrome to be run in root mode. Is there a command that allows running a command in guest mode? Kind of a reverse sudo?