La_Tristesse wrote:Thanks the answers.
Could you explain further and give a example?
tail -50 /private/var/log/system.log | grep "Growl\[" | grep -Ev "\-\-\-|Reserving" | tail -1| sed -n -e '/^[^(]*(\([^)]*\)).*/s//\1/p'
system_profiler -xml SPUSBDataType | grep -c "iPhone"
La_Tristesse wrote:Thanks, but how do I monitor this? I don't get it. Do I have to run a bash script with the launchagent every 30 seconds or how do I achieve that.
if [ $(system_profiler -xml SPUSBDataType | grep -c "iPhone") == 1 ]
Users browsing this forum: No registered users and 2 guests