<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 01/09/2011, at 2:41 AM, William R Agosto Padilla wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Linux Experts,<div><br></div><div>I have installed Ubuntu 11.04 recently. When I tried using strace, I got an error message that the modules couldn't be found. A sure sign that strace was not included in the distribution that I got. I installed strace <span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 12px; line-height: 12px; background-color: rgb(247, 247, 247); "> <a href="https://launchpad.net/ubuntu/oneiric/+package/strace" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-size: 12px; line-height: 1; font-family: inherit; text-align: left; vertical-align: baseline; color: rgb(221, 72, 20); text-decoration: none; ">strace_4.5.20-2.3ubuntu1_i386</a>. However after a restart, I am not able to get strace to work. When I run the command:</span></div>
<div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 12px; line-height: 12px; background-color: rgb(247, 247, 247); "><br>
</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 12px; line-height: 12px; background-color: rgb(247, 247, 247); ">"strace -e trace=network -o ~rkarne/Documents/strace_out.txt" </span><br clear="all">
<div><br></div><div>I get a man page explaining the strace and command options, but it does no run the command itself. Are you aware of any problems with strace with Ubuntu 11.04? Also, is "dtrace" the same thing as "strace"? What else do you recommend I do to be able to trace various processes?</div>
<div><br></div><div>Very Respectfully,</div><div><br></div><div>William</div></div></blockquote><div><br></div>Check the man page.</div><div>Where is the name of the program you are tracing?</div><div><br></div><div>Start simple.</div><div><br></div><div>$ strace /bin/ls</div><div><br></div><div>Cheers,</div><div>Steve</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px; ">--</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px; ">µWeb: Embedded Web Framework - <a href="http://uweb.workware.net.au/">http://uweb.workware.net.au/</a></span></font></div><div><span class="Apple-style-span" style="font-size: 11px; font-family: Courier; ">WorkWare Systems Pty Ltd</span></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px; ">W: <a href="http://www.workware.net.au">www.workware.net.au</a> P: +61 434 921 300</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px; ">E: <a href="mailto:steveb@workware.net.au">steveb@workware.net.au</a> F: +61 7 3391 6002</span></font></div><div><span class="Apple-style-span" style="font-size: medium; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px; "><br></span></font></span></div></div></div></span></div></span></div></span></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>