sudo dtruss -p プロセスIDでシステムトレースを確認できる。 psコマンドでipアドレスを確認して、dtrussコマンドで実行する。 %ps -ef | grep httpd 0 106 1 0 2 217 ?? 0:12.45 /usr/sbin/httpd -D FOREGROUND 70 518 106 0 2 217 ?? 0:00.00 /usr/sbin/httpd -D FOREGROUND 501 29343 86389 0 11:41PM ttys004 0:00.00 grep httpd % sudo dtruss -p 29343 dtrace: system integrity protection is on, some features will not be available SYSCALL(args) = return ^C 実行結果 dtrace: system integrity protection is on, some features will not be available どうやらシステムに保護されていて実行できないらしい。調べていろいろ試したが実行できなかった。 configも同様に調べることができなかった。 %ps -ef | grep .conf 0 68 1 0 2 217 ?? 6:28.19 /usr/libexec/configd 0 313 1 0 2 217 ?? 0:26.68 /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift 262 512 1 0 2 217 ?? 0:01.17 /Library/MakerBot/conveyor-svc --config_file /Library/MakerBot/conveyor.conf 501 31686 23056 0 12:14AM ttys001 0:00.00 grep .conf /Users/e145729% sudo dtruss -p 31686 Password: dtrace: system integrity protection is on, some features will not be available SYSCALL(args) = return ^C