[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Self-updating Perl script ("exec" equivalent)?



At 12.40 -0700 1999.08.13, Tom Sackett wrote:
>For most housekeeping tasks, this works great. However, I also need,
>sometimes, to update the client script itself, which means that client
>script has to terminate and be re-launched. This was easy to implement in
>Windows using "exec," but I can't find a way to do it in MacPerl.

There is no clean way to do it.  Search on the list archives for
"launchotherperl.plx".  It is a kludge to make a copy of the MacPerl app,
and then launch it with another script.  Under Mac OS, each app can only be
running once, so you need copies.  That script might do what you need, even
if it takes a bit of modification.

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org