[EMAIL PROTECTED] wrote:
><x-charset iso-2022-jp>Thanks for your suggestions Ken
>
>I've included the script below for perusal, it basically kills any
>apps which are open at the time of invokation - I got fed up doing it
>manually and didn't want to write an Applescript to do it. It works
>as expected when run from the command line using 'perl script.pl',
>but fails silently when I try to call it by name, even after forcing
>OSX to place it in "/usr/bin/"
Robin,
I set up the script as you indicated and it functioned correctly for me.
I would agree with Ken Williams' suggestion that your line endings are off.
If you do:
% cat `which App_reaper.pl`
Does the entire script appear on a single line?
If so, then something along the lines of
% sudo perl -pi -e "tr/\r/\n/" /usr/bin/App_reaper.pl
should fix you up.
-Charles
--
Charles Albrecht P.O. Box 300623
[EMAIL PROTECTED] Denver, Colorado
C>303.619.7596 F>978.334.3061 80203-0623
%PGP = ('E5DD3CAE', [2048,'E6DDEEF8BC B59715E8E6 0AEE364FB7 69E5DD3CAE'])