Neat Dtrace idea...
Adam Salter
adam.q.salter at gmail.com
Mon Nov 12 20:41:59 PST 2007
OK apparently the backup process is called backupd.
but on trying to run the script I got:
dtrace: failed to compile script backup_watch.dtrace: line 6: operator
= can only be applied to a writable variable
line 5 needs == (not =)
> #pragma D option destructive
> #pragma D option quiet
>
> syscall::execve:return
> /execname == "backupd"/
> {
> system("growlnotify -m \"Backup Started\"");
> }
Thanks... haven't seen it work yet, but it's chugging away :)
-Adam
More information about the MacOSX-dev
mailing list