Code:
truss -dDaef -t exec,open,stat,chdir,read,write,accept,creat,link,unlink,mknod,chmod,chown,lseek,mount,umount,fstat,access,dup,pipe,chroot,lstat,symlink,fchmod,fchown,pread,pwrite,llseek,kaio,stat64,lstat64,fstat64,pread64,pwrite64,creat64,open64,so_socket,so_socketpair,bind,listen,connect,shutdown,recv,recvfrom,send,sendto,getpeername,fork -p pid >/tmp/truss.out 2>&1