Re: How to run Perl script at Mac OS (Darwin) Release?
Change the she-bang (#!) line to read: #!/usr/bin/perl -w That's the location of the default perl installation on OS X. - Larry On Mar 7, 2008, at 1:35 PM, Gary Yang wrote: Hi, Below is my Perl script. The script named, test1.pl test1.pl #!/usr/local/ActivePerl-5.10/bin/perl -w print "$^O\n"; I have to type, "perl test1.pl" in order to run it. I got command not found if I simply typed test1.pl. Can someone tell me why and how to fix it? test1.pl -bash: test1.pl: command not found Thanks Gary - Never miss a thing. Make Yahoo your homepage.
Re: Detecting OS X version from perl
Try 'system_profiler'. Running it as 'system_profiler -detaillevel full' will probably provide more information than you really need. Run it with an unrecognized option (e.g. '-help') for more info. On Nov 17, 2007, at 7:37 PM, Michael Barto wrote: Just a quick question. Is there a command line at a terminal window of MacOSX that can do this- tell you more about the hardware? Also list software packages and their revisions and also patches? Peter Hartmann wrote: On my 800Mhz Dual Processor PPC the AS command system info returns the correct version (10.4.11). Am 17.11.2007 um 12:21 schrieb Eberhard Lisse: Very Cool, on my iMini Gestalt says it's 10.4.9 osascript/fider says 10.4.7 I guess this is the version for the application "Finder", not the OS! sw_version 10.4.11 the latter is correct :-)-O This AS tell application "Finder" set FinderVersion to version set OSVersion to product version return {FinderVersion, OSVersion} end tell returns {"10.4.7", ""} So getting the OS version via the Finder seems to be broken - but there is an alternative, as shown above. Gestalt seems to be broken, however. ___ Peter Hartmann mailto:[EMAIL PROTECTED] -- Michael Barto Software Architect LogiQwest Inc. 16458 Bolsa Chica Street, # 15 Huntington Beach, CA 92649 http://www.logiqwest.com/ [EMAIL PROTECTED] Tel: 714 377 3705 Fax: 714 840 3937 Cell: 714 883 1949 'tis a gift to be simple This e-mail may contain LogiQwest proprietary information and should be treated as confidential.
Re: Frickin' CPAN
You might want to take a look at that URL list. Try going to each site by hand and see how long it takes to connect. Move your fastest sites to the top of the list. - Larry On Jun 9, 2005, at 11:04 AM, John Mercer wrote: urllist ftp://ftp.sunsite.utk.edu/pub/CPAN/ ftp://ftp.theshell.com/pub/CPAN/ ftp://ftp.uwsg.iu.edu/pub/perl/CPAN/ ftp://linux.cs.lewisu.edu/pub/CPAN ftp://mirror.candidhosting.com/pub/CPAN ftp://mirror.cc.columbia.edu/pub/software/cpan/ ftp://mirror.datapipe.net/pub/CPAN/ ftp://mirror.hiwaay.net/CPAN/ ftp://mirror.sg.depaul.edu/pub/CPAN/ ftp://mirror.sit.wisc.edu/pub/CPAN/ ftp://mirror.xmission.com/CPAN/ ftp://mirrors.ibiblio.org/pub/mirrors/CPAN ftp://mirrors.jtlnet.com/CPAN/ ftp://mirrors.kernel.org/pub/CPAN ftp://mirrors.phenominet.com/pub/CPAN/ ftp://mirrors.rcn.net/pub/lang/CPAN/ ftp://perl.secsup.org/pub/perl/ http://cpan.belfry.net/ http://cpan.binarycompass.org http://cpan.mirrors.hoobly.com/ http://cpan.mirrors.nks.net/ wget /sw/bin/wget
Re: ide
Try ptkdb. You can get it from CPAN as Devel::ptkdb (I think; not where I can check at the moment). Then run your app as 'perl -dptkdb myapp'. On Jul 19, 2004, at 4:24 PM, Flatman wrote: hi all ! i'm using perl with tk extension in developping desktop apps . working on macosx platform, I use either the Xcode editor or emacs. i'm lacking debugger support and tk gui ide . anybody any idea if there's a ide out there with support for debugging and/or tk ? thanks erik smime.p7s Description: S/MIME cryptographic signature
OSX, threads, signals, and END blocks
Sorry if this is a dupe. I first sent it a couple of days ago, but never saw it show up. I have a threaded script which will eventually terminate, but which in many cases I would like to end with a Control-C. No problem. Except that I would also like to have a printout of current statistics at the point where I send the INT. Without threads, I would simply use an END block and trap for SIG{INT}, but with threads it's not so simple. Since threads and signals are OS dependent, this seems to be an OSX issue (not that it I know how to do it under any other OS, either, but it keeps the question from being too far off topic; i.e., it's an excuse for posting to this list). Anyone ever do anything like this under OS X with perl-5.8.3, or have any suggestions? Thanks. - Larry
OSX, threads, signals, and END blocks
I have a threaded script which will eventually terminate, but which in many cases I would like to end with a Control-C. No problem. Except that I would also like to have a printout of current statistics at the point where I send the INT. Without threads, I would simply use an END block and trap for SIG{INT}, but with threads it's not so simple. Since threads and signals are OS dependent, this seems to be an OSX issue (not that it I know how to do it under any other OS, either, but it keeps the question from being too far off topic; i.e., it's an excuse for posting to this list). Anyone ever do anything like this under OS X with perl-5.8.3, or have any suggestions? Thanks. - Larry
Re: BOM.pm -- what is it for?
On Wednesday, December 19, 2001, at 04:51 PM, Benjamin Turner wrote: > If you poke around in your /Library/Receipts directory, you will find > that many packages (maybe all, I didn't look that closely) contain some > sort of *.bom file (which seems to be binary). If I'm not mistaken, BOM > is an acronym for Bill Of Materials. All of this seems to indicate that > it is indeed part of the software packaging/updating system that Apple > uses. > If you apply the 'lsbom' command to one of those BOM files, you'll get a wealth of information. I have a perl script that I use to parse the bom files to get the original owners, groups, modes, etc of installed files and compare them to their current states. It's very useful when you're trying to help people who have been playing with root or playing with one of the little shareware utilities out there and put their systems into an unusable state. I didn't know about the BOM module, and haven't looked at it so haven't a clue as to what it does. - Larry Prall # rm -rf /bin/laden [EMAIL PROTECTED] Get my key at http://pgpkeys.mit.edu:11371 PGP ID: 0x9678436B PGP Fingerprint: 55BB 3E53 367D 0AB9 4C34 8458 313B 82BB 9678 436B
Re: Tk
On Saturday, May 12, 2001, at 08:27 AM, Bohdan Peter Rekshynskyj wrote: > At 10:30 AM +0200 5/12/01, Philippe de Rochambeau wrote: >> Has anyone succeeded in compiling Perl/Tk on MacOSX? >> >> Philippe de Rochambeau > > Yes, but I get duplicate symbols upon execution though... > You need the X libraries from Tenon (which I am using) or > the freebie ones (which I have not tried)... > > > Bohdan > Yes. Ran into the same thing, but stopped trying to run it down after I saw: http://porting.openoffice.org/mac/macosx_issues.html Looks like there may be a workaround, but I haven't tried it and really don't plan to spend time on it for now. I can live without Tk for now, and rumor has it that there is a no compiler near completion at Apple, so maybe that will fix the problem. - Larry