<div dir="ltr"><div><div><div><div>Thank you all for all your answers!<br><br></div>Nikolaus' seem to be simple enough (Linux world for now):<br>(string-split (file->string "/proc/self/cmdline") "\u0000")<br>
</div><div>gives me what I want.<br><br></div><div>(FYI, the result of this in DrRacket is: <br>'("/usr/bin/gracket" "-N" "/usr/bin/drracket" "-J" "DrRacket" "-l-" "drracket/drracket.rkt")<br>
)<br></div><div><br></div>About
sandboxes and custodians, this is also a nice and pure Racket solution,
but I'm a bit worried about the memory (and other?) overhead that this
might incur.<br></div>Is this doubt justified?<br><br></div>Laurent</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 16, 2013 at 8:20 PM, Nikolaus Klepp <span dir="ltr"><<a href="mailto:dr.klepp@gmx.at" target="_blank">dr.klepp@gmx.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Mittwoch, 16. Januar 2013 schrieb Tony Garnock-Jones:<br>
<div><div class="h5">> On 01/15/2013 05:40 AM, Laurent wrote:<br>
> > The purpose is to be able to relaunch the process.<br>
><br>
> Another approach might be to create an outer wrapper which builds a<br>
> nested namespace, custodian etc, within which your program is<br>
> dynamic-required.<br>
><br>
> That way, you can signal to the wrapper to destroy the running custodian<br>
> and start afresh without having to exit or restart the unix process<br>
> itself. A little like servlet reloading.<br>
><br>
> This would work cross-platform and in both DrRacket and Racket, I imagine.<br>
><br>
> Regards,<br>
> Tony<br>
</div></div><div class="im">> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br>
</div>If you are on some unix-like OS you could use /proc/self/cmdline.<br>
<br>
Nik<br>
<div class="HOEnZb"><div class="h5">____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div></div></blockquote></div><br></div>