| tlarkin |
08-25-2009 11:32 AM |
Oh and I had to edit my script, it seems that the binary logname only captures what user is running the current process and if installed via ARD admin it will log it as root user, so I had to change that variable, here it is:
Code:
#!/bin/bash
#set variables for file name and save path
thedate=`/bin/date -u`
name=`/bin/ls ‑l /dev/console | cut ‑d " " ‑f 4`
path="/private/var/hadmin/Desktop/screenshots"
#execute screen shot
/usr/sbin/screencapture -x $path/"$thedate $name sreen.png"
echo "screen captured"
exit 0
|