<p></p>
<p>There are several ways.</p>
<ol>
<li>
<p>A file could be named after the last execve call. I.e. if processes call execve several times, the file will be renamed on each execve. So it will be named after the last executed command.</p>
</li>
<li>
<p>it could be named like 1235-1-bash and 1235-2-cp.</p>
</li>
</ol>
<p>In the second case one could easily separate syscalls that were issued by one command from the syscalls of the execed command.</p>
<p>Also, may be it could be useful to allow specifying the file naming scheme with the printf-like syntax. I.e. <code>--log-name=%p-%n-%c.log</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/153#issuecomment-695808534">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTRYIKD3N5YI3X4FQTKDSGYWVTANCNFSM4Q6O3NMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR6FH77665UMCFLSNCLSGYWVTA5CNFSM4Q6O3NMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFF4TEFQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/153#issuecomment-695808534",
"url": "https://github.com/strace/strace/issues/153#issuecomment-695808534",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>