I'm learning about NSTask at the moment, because I'd like to wrap a few shell commands in my app.
The command I'd like to run is a perl script which is part of a package installed by Fink.
When I run the script in the terminal all is well, but when I try to run it as an NSTask I get the error below:
Is it because the Shell has extra Environment stuff going on? I'm not entirely familiar with what the "environment" is exactly.
2003-09-12 16:21:15.128 TVList[2899] update listings...
Can't locate LWP/Simple.pm in @INC (@INC contains: /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at /sw/bin/tv_grab_uk line 71.
BEGIN failed--compilation aborted at /sw/bin/tv_grab_uk line 71.
2003-09-12 16:21:15.370 TVList[2899] Task status: 2.