From mike at lvnv.com Tue May 6 21:33:05 2008 From: mike at lvnv.com (M K) Date: Tue May 6 21:33:45 2008 Subject: [X-Unix] old port for ssh Message-ID: I need an older port of OpenSSH than what comes with Leopard. I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 How do I remove the current port of OpenSSH? (I read somewhere that I just need to delete the current file, but that doesn't seem right) Where can I find a really old port so I don't have to compile it myself and risk screwing something up? many thanks in advance. From philip.robar at gmail.com Tue May 6 22:47:33 2008 From: philip.robar at gmail.com (Robar Philip) Date: Tue May 6 22:47:47 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: On May 6, 2008, at 9:33 PM, M K wrote: > I need an older port of OpenSSH than what comes with Leopard. > I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 [snip] > How do I remove the current port of OpenSSH? > (I read somewhere that I just need to delete the current file, but > that doesn't seem right) You shouldn't. Replacing the vendor shipped version of something with your own is almost always a bad idea. Install the older version somewhere like /usr/local/bin or /opt/local/bin. Then write a little script called something like "oldssh" which runs the older version or just type the full path to the older version. > Where can I find a really old port so I don't have to compile it > myself and risk screwing something up? I did a quick Google search but didn't find an obvious pointer. Phil From jmpalaciosp at eml.cc Tue May 6 23:22:05 2008 From: jmpalaciosp at eml.cc (Juan Manuel Palacios) Date: Tue May 6 23:22:16 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: On May 7, 2008, at 12:03 AM, M K wrote: > I need an older port of OpenSSH than what comes with Leopard. > > I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 > > > > How do I remove the current port of OpenSSH? > (I read somewhere that I just need to delete the current file, but > that doesn't seem right) > > Where can I find a really old port so I don't have to compile it > myself and risk screwing something up? > > > many thanks in advance. > We at MacPorts provide a port for openssh, but as it stands it is at its latest release, 5.0p1. You could, however, backtrack it to something prior to 4.5 and have MacPorts build the result for you, but you have to be willing to do some subversion && MacPorts trickery. Let me know if you're interested and I'll walk you through it. Disclaimer: I do not guarantee that such experiment will be successful, I don't know if openssh 4.5 or earlier will build cleanly on Mac OS X Leopard. I'm just saying we can attempt it. So, let me know. Regards,... -jmpp From ecrist at secure-computing.net Wed May 7 05:16:33 2008 From: ecrist at secure-computing.net (ecrist@secure-computing.net) Date: Wed May 7 05:18:44 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: On Tue, 6 May 2008 21:33:05 -0700, M K wrote: > I need an older port of OpenSSH than what comes with Leopard. > > I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 > > > > How do I remove the current port of OpenSSH? > (I read somewhere that I just need to delete the current file, but > that doesn't seem right) > > Where can I find a really old port so I don't have to compile it > myself and risk screwing something up? The ssh command has the option to specify what version is used when connecting to a remote host. I believe it's ssh -p - username@host, replace with 1 or 2. I think if you put a 1 there, things will work just fine. HTH Eric Crist From RussellMcGaha at mac.com Wed May 7 08:40:11 2008 From: RussellMcGaha at mac.com (Russell McGaha) Date: Wed May 7 08:40:27 2008 Subject: [X-Unix] shell script to determine 1st business day of month ? Message-ID: Folks; Do any of you know of a script callable from BASH, that will / can say if today (or a given date) is the first business day of the month?? Russell From ecrist at secure-computing.net Wed May 7 09:31:10 2008 From: ecrist at secure-computing.net (ecrist@secure-computing.net) Date: Wed May 7 09:32:36 2008 Subject: [X-Unix] shell script to determine 1st business day of month =?UTF-8?Q?=3F?= In-Reply-To: References: Message-ID: <67009a6abe4d20ccf2f168df8caf769c@localhost> On Wed, 7 May 2008 10:40:11 -0500, Russell McGaha wrote: > Folks; > Do any of you know of a script callable from BASH, that will / can > say if today (or a given date) is the first business day of the month?? Russell, It wouldn't be too difficult to write a simply shell script to figure this out for yourself. Something like a loop, foreach $day do; $day == $day++; if $dayofweek != (Saturday|Sunday) then echo "first business day". Note, my syntax is incorrect above, but you should get the general idea. Eric Crist From ecrist at secure-computing.net Wed May 7 09:48:34 2008 From: ecrist at secure-computing.net (ecrist@secure-computing.net) Date: Wed May 7 09:48:45 2008 Subject: [X-Unix] shell script to determine 1st business day of month =?UTF-8?Q?=3F?= In-Reply-To: References: Message-ID: <93a3e47ed7c389d1a2a41c0a94c35210@localhost> On Wed, 7 May 2008 10:40:11 -0500, Russell McGaha wrote: > Folks; > Do any of you know of a script callable from BASH, that will / can > say if today (or a given date) is the first business day of the month?? Russell, A few minutes on google turned up the following: http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2006-09/msg00059.html This is a decent solution if cron jobs is what you're working with... You should be able to peel out what's there to help build a shell script, though. Eric Crist From douglist at macnauchtan.com Wed May 7 10:09:42 2008 From: douglist at macnauchtan.com (Doug McNutt) Date: Wed May 7 10:10:46 2008 Subject: [X-Unix] shell script to determine 1st business day of month ? In-Reply-To: <67009a6abe4d20ccf2f168df8caf769c@localhost> References: <67009a6abe4d20ccf2f168df8caf769c@localhost> Message-ID: At 11:31 -0500 5/7/08, wrote: >On Wed, 7 May 2008 10:40:11 -0500, Russell McGaha >wrote: >> Folks; >> Do any of you know of a script callable from BASH, that will / can >> say if today (or a given date) is the first business day of the month?? > #! >Russell, > >It wouldn't be too difficult to write a simply shell script to figure this >out for yourself. Something like a loop, foreach $day do; $day == $day++; >if $dayofweek != (Saturday|Sunday) then echo "first business day". I once tried that with M$Excel VBA macros and discovered that the math was easy but the politics made the result useless for what I wanted which was to figure dates that were business days for banking. Altogether too often the first day insisted on being a bank holiday that was only discoverable with access to someone's ever changing database that even depended on the state or province. -- --> From the U S of A, the only socialist country that refuses to admit it. <-- From RussellMcGaha at mac.com Wed May 7 10:50:52 2008 From: RussellMcGaha at mac.com (Russell McGaha) Date: Wed May 7 10:51:16 2008 Subject: [X-Unix] shell script to determine 1st business day of month ? In-Reply-To: <93a3e47ed7c389d1a2a41c0a94c35210@localhost> References: <93a3e47ed7c389d1a2a41c0a94c35210@localhost> Message-ID: Eric; On May 7, 2008, at 11:31 AM, ecrist@secure-computing.net wrote: > > > On Wed, 7 May 2008 10:40:11 -0500, Russell McGaha > > wrote: >> Folks; >> Do any of you know of a script callable from BASH, that will / can >> say if today (or a given date) is the first business day of the >> month?? > > Russell, > > It wouldn't be too difficult to write a simply shell script to > figure this > out for yourself. Something like a loop, foreach $day do; $day == > $day++; > if $dayofweek != (Saturday|Sunday) then echo "first business day". > > Note, my syntax is incorrect above, but you should get the general > idea. > > Eric Crist > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > On May 7, 2008, at 11:48 AM, ecrist@secure-computing.net wrote: > > On Wed, 7 May 2008 10:40:11 -0500, Russell McGaha > > wrote: >> Folks; >> Do any of you know of a script callable from BASH, that will / can >> say if today (or a given date) is the first business day of the >> month?? > > Russell, > > A few minutes on google turned up the following: > http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2006-09/ > msg00059.html > > This is a decent solution if cron jobs is what you're working > with... You > should be able to peel out what's there to help build a shell script, > though. > > Eric Crist > > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix I didn't think it would be TOO difficult to roll my own; but I didn't want to re-invent the wheel ether. You must of used better search terms than I; as I hadn't turned up anything on google as of my earlier message. THANKS, for the responses and the pointer; it is/was MUCH appreciated. Russell From russellmcgaha at mac.com Wed May 7 10:55:02 2008 From: russellmcgaha at mac.com (Russell McGaha) Date: Wed May 7 10:55:20 2008 Subject: [X-Unix] shell script to determine 1st business day of month ? In-Reply-To: References: <67009a6abe4d20ccf2f168df8caf769c@localhost> Message-ID: <5B12437A-B331-4AA0-B886-92B74ABBAEC6@mac.com> Doug; I'm going to be using this "in-house". I've the advantage of being able to determine our Holidays in advance, and will match the results against a text file of out Holidays. Russell There IS more than one way to skin a cat; unfortunately the cat doesn't like any of them! On May 7, 2008, at 12:09 PM, Doug McNutt wrote: > At 11:31 -0500 5/7/08, wrote: >> On Wed, 7 May 2008 10:40:11 -0500, Russell McGaha >> >> wrote: >>> Folks; >>> Do any of you know of a script callable from BASH, that will / can >>> say if today (or a given date) is the first business day of the >>> month?? >> #! >> Russell, >> >> It wouldn't be too difficult to write a simply shell script to >> figure this >> out for yourself. Something like a loop, foreach $day do; $day == >> $day++; >> if $dayofweek != (Saturday|Sunday) then echo "first business day". > > I once tried that with M$Excel VBA macros and discovered that the > math was easy but the politics made the result useless for what I > wanted which was to figure dates that were business days for banking. > > Altogether too often the first day insisted on being a bank holiday > that was only discoverable with access to someone's ever changing > database that even depended on the state or province. > > -- > > --> From the U S of A, the only socialist country that refuses to > admit it. <-- > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From dledger at ivdcs.demon.co.uk Wed May 7 12:10:04 2008 From: dledger at ivdcs.demon.co.uk (David Ledger) Date: Wed May 7 12:10:40 2008 Subject: [X-Unix] shell script to determine 1st business day of month ? In-Reply-To: References: Message-ID: At 10:40 -0500 7/5/08, Russell McGaha wrote: >Folks; > Do any of you know of a script callable from BASH, that will >/ can say if today (or a given date) is the first business day of >the month?? That sort of thing is very long winded to do in any shell. It's much easier to use perl . This should work using ksh as the wrapper. set -A timestamp 0 0 0 7 4 108 set -A ts $(perl -e 'use Time::Local;print join(" ", localtime(timelocal(split /\s/, "'"${timestamp[*]}"'"))), "\n"') echo ${ts[*]} prints 0 0 0 7 4 108 3 127 1 echo ${ts[6]} prints 3 Where the '7' and the '4' means 7th May (month - 1) and the 108 is 2008 - 1900. The '3' in the o/p is the day number = Wednesday (Sunday = 0). (The 127 is the day of the year and the 1 means daylight saving. The zeros are seconds, minutes and hours). You can use this technique to determine the weekday of any date and go from there. David -- David Ledger - Freelance Unix Sysadmin in the UK. HP-UX specialist of hpUG technical user group (www.hpug.org.uk) david.ledger@ivdcs.co.uk www.ivdcs.co.uk From philip.robar at gmail.com Wed May 7 12:27:56 2008 From: philip.robar at gmail.com (Robar Philip) Date: Wed May 7 12:28:32 2008 Subject: [X-Unix] shell script to determine 1st business day of month ? In-Reply-To: References: Message-ID: <1CBB6448-3265-453E-AECA-7B7388DF071F@gmail.com> On May 7, 2008, at 8:40 AM, Russell McGaha wrote: > Do any of you know of a script callable from BASH, that will / can > say if today (or a given date) is the first business day of the month? Here's my shot: #!/usr/bin/env bash # # "The shebang line in this reworking of the script probably looks a little different than those # you're used to seeing. The env command invokes the environment for bash, much as /usr/bin/bash # would. However, this syntax avoids problems if the path to bash on your system is not /bin/bash." # - http://open.itworld.com/5040/nlsunix070313/page_1.html # # firstworkday: # # Exit with true (0) if today is the first work day (Mon-Fri) of the month, # otherwise exit with false (1). # # The first work day falls within the first three days of the month and if it's any day other # than Monday it must be the first day of the month: # # 1st 2nd 3rd # # Sat Sun Mon # Sun Mon ... # M-F ... # # So first check if today's date is not 1-3, if so then exit with false (1). Otherwise: # # If today is Monday then it must be the Month's first work day. # If today is Tuesday-Friday and it's the 1st then today is the month's first work day. # # NOTE! This script does not take into account Holidays! firstWorkDay=1 # Assume today is not the month's first work day. dayOfWeek=$(date +%u) monthDay=$(date +%d) if [[ ${monthDay} -le 3 ]]; then case ${dayOfWeek} in [1]) firstWorkDay=0;; [2-5]) [[ ${monthDay} -eq 1 ]] && firstWorkDay=0;; esac fi exit ${firstWorkDay} From mike at lvnv.com Wed May 7 19:38:46 2008 From: mike at lvnv.com (M K) Date: Wed May 7 19:39:08 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: <141516AA-2018-43ED-B6B2-FA253F827145@lvnv.com> On May 7, 2008, at 5:16 AM, wrote: > > On Tue, 6 May 2008 21:33:05 -0700, M K wrote: >> I need an older port of OpenSSH than what comes with Leopard. >> >> I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 >> >> >> >> How do I remove the current port of OpenSSH? >> (I read somewhere that I just need to delete the current file, but >> that doesn't seem right) >> >> Where can I find a really old port so I don't have to compile it >> myself and risk screwing something up? > > The ssh command has the option to specify what version is used when > connecting to a remote host. I believe it's ssh -p - > username@host, replace with 1 or 2. I think if you put a 1 > there, things will work just fine. > > HTH > > Eric Crist > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix No luck... I tried it just to be sure. it has to be SSH v2 this is the error I get by the way... channel 0: open failed: resource shortage: Channel open failed and like I said, it only happens in openSSH 4.6 and later... I'm sure it's bug in their SSH Daemon...so I need to get an old port of OpenSSH From mike at lvnv.com Wed May 7 19:40:01 2008 From: mike at lvnv.com (M K) Date: Wed May 7 19:40:26 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: On May 6, 2008, at 10:47 PM, Robar Philip wrote: > > On May 6, 2008, at 9:33 PM, M K wrote: > >> I need an older port of OpenSSH than what comes with Leopard. >> I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 > > [snip] > >> How do I remove the current port of OpenSSH? >> (I read somewhere that I just need to delete the current file, but >> that doesn't seem right) > > You shouldn't. Replacing the vendor shipped version of something > with your own is almost always a bad idea. Install the older version > somewhere like /usr/local/bin or /opt/local/bin. Then write a little > script called something like "oldssh" which runs the older version > or just type the full path to the older version. > >> Where can I find a really old port so I don't have to compile it >> myself and risk screwing something up? > > I did a quick Google search but didn't find an obvious pointer. > > Phil > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix I can't seem to find an old port either...I've looked all around... I think I might just compile it... argh From mike at lvnv.com Wed May 7 19:41:43 2008 From: mike at lvnv.com (M K) Date: Wed May 7 19:41:58 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: <87EA0209-2772-4D32-ACBD-0A449190BAA7@lvnv.com> On May 6, 2008, at 11:22 PM, Juan Manuel Palacios wrote: > > On May 7, 2008, at 12:03 AM, M K wrote: > >> I need an older port of OpenSSH than what comes with Leopard. >> >> I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 >> >> >> >> How do I remove the current port of OpenSSH? >> (I read somewhere that I just need to delete the current file, but >> that doesn't seem right) >> >> Where can I find a really old port so I don't have to compile it >> myself and risk screwing something up? >> >> >> many thanks in advance. >> > > We at MacPorts provide a port for openssh, but as it stands it is > at its latest release, 5.0p1. You could, however, backtrack it to > something prior to 4.5 and have MacPorts build the result for you, > but you have to be willing to do some subversion && MacPorts > trickery. Let me know if you're interested and I'll walk you through > it. > > Disclaimer: I do not guarantee that such experiment will be > successful, I don't know if openssh 4.5 or earlier will build > cleanly on Mac OS X Leopard. I'm just saying we can attempt it. > > So, let me know. Regards,... > > > -jmpp > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix It might be easier to just compile it myself and build it where I want to run it from... or do you think it would be a good exerise in learning about MacPorts? From ecrist at secure-computing.net Thu May 8 06:22:24 2008 From: ecrist at secure-computing.net (ecrist@secure-computing.net) Date: Thu May 8 06:22:37 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: <20080508132224.BA0D4170BA@snipe.secure-computing.net> Message-ID: <895d15a830108c4cd8e877a90947133f@localhost> X-Sender: ecrist@secure-computing.net Received: from 74-95-66-25-Minnesota.hfc.comcastbusiness.net [74.95.66.25] via tank.he-ip6.secure-computing.net [2001:470:1f01:724::150] with HTTP/1.1 (POST); Thu, 08 May 2008 08:22:24 -0500 User-Agent: Secure Computing WebMail Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Wed, 7 May 2008 19:40:01 -0700, M K wrote: > > On May 6, 2008, at 10:47 PM, Robar Philip wrote: > >> >> On May 6, 2008, at 9:33 PM, M K wrote: >> >>> I need an older port of OpenSSH than what comes with Leopard. >>> I have OpenSSH_5.0p1, I need a version of OpenSSH less than 4.5 >> >> [snip] >> >>> How do I remove the current port of OpenSSH? >>> (I read somewhere that I just need to delete the current file, but >>> that doesn't seem right) >> >> You shouldn't. Replacing the vendor shipped version of something >> with your own is almost always a bad idea. Install the older version >> somewhere like /usr/local/bin or /opt/local/bin. Then write a little >> script called something like "oldssh" which runs the older version >> or just type the full path to the older version. >> >>> Where can I find a really old port so I don't have to compile it >>> myself and risk screwing something up? >> >> I did a quick Google search but didn't find an obvious pointer. >> >> Phil > > I can't seem to find an old port either...I've looked all around... > > I think I might just compile it... That's probably your best bet. With the proper developer tools, this should be relatively trivial. Also, if you have an old version of Mac OS X around, you could probably simply copy the binary to your system, to an alternate location such as /usr/local/bin, or /opt/bin/, so as not to interfere with the system installed version of OpenSSH. If you run into library problems, you can probably symlink the newer libs to a name matching what the old binary is looking for. It's kind of a hack, but works in a pinch. Let me know if you need any help. Eric Crist From macmonster at myrealbox.com Thu May 8 08:29:30 2008 From: macmonster at myrealbox.com (Stroller) Date: Thu May 8 08:29:43 2008 Subject: [X-Unix] old port for ssh In-Reply-To: <141516AA-2018-43ED-B6B2-FA253F827145@lvnv.com> References: <141516AA-2018-43ED-B6B2-FA253F827145@lvnv.com> Message-ID: <9088D4EF-D336-4CBF-9C32-1939E8202887@myrealbox.com> On 8 May 2008, at 03:38, M K wrote: > ... >> The ssh command has the option to specify what version is used when >> connecting to a remote host. I believe it's ssh -p - >> username@host, replace with 1 or 2. I think if you put a 1 >> there, things will work just fine. > > > No luck... I tried it just to be sure. > it has to be SSH v2 > > this is the error I get by the way... > channel 0: open failed: resource shortage: Channel open failed > > and like I said, it only happens in openSSH 4.6 and later... > > I'm sure it's bug in their SSH Daemon...so I need to get an old > port of OpenSSH It might just be that the client on your machine is trying to enforce security standards which weren't available when the older server was written. It may not be the version you have to change, but something else - look, for example, at the variety of -o options in `man ssh`. You might find that `ssh -v hostname` (or `ssh -v -v hostname` or `ssh -v -v -v hostname`) gives more information about the problem and enables you to find a workaround (using the current client). Stroller. From mike at lvnv.com Thu May 8 10:21:21 2008 From: mike at lvnv.com (M K) Date: Thu May 8 10:21:37 2008 Subject: [X-Unix] old port for ssh In-Reply-To: <9088D4EF-D336-4CBF-9C32-1939E8202887@myrealbox.com> References: <141516AA-2018-43ED-B6B2-FA253F827145@lvnv.com> <9088D4EF-D336-4CBF-9C32-1939E8202887@myrealbox.com> Message-ID: On May 8, 2008, at 8:29 AM, Stroller wrote: > > On 8 May 2008, at 03:38, M K wrote: >> ... >>> The ssh command has the option to specify what version is used when >>> connecting to a remote host. I believe it's ssh -p - >>> >>> username@host, replace with 1 or 2. I think if you put >>> a 1 >>> there, things will work just fine. >> >> >> No luck... I tried it just to be sure. >> it has to be SSH v2 >> >> this is the error I get by the way... >> channel 0: open failed: resource shortage: Channel open failed >> >> and like I said, it only happens in openSSH 4.6 and later... >> >> I'm sure it's bug in their SSH Daemon...so I need to get an old >> port of OpenSSH > > It might just be that the client on your machine is trying to > enforce security standards which weren't available when the older > server was written. It may not be the version you have to change, > but something else - look, for example, at the variety of -o options > in `man ssh`. > > You might find that `ssh -v hostname` (or `ssh -v -v hostname` or > `ssh -v -v -v hostname`) gives more information about the problem > and enables you to find a workaround (using the current client). > > Stroller. > > __________ thanks, those are good ideas. I've already sent them the ssh -vvv output so they could see where everything was getting gummed up... I haven't heard back from them... but in the meantime, I have to shell into another box then shell into the switch...it's just a pain... I guess I could look at it like it's inherently more secure ... From ecrist at secure-computing.net Thu May 8 10:29:08 2008 From: ecrist at secure-computing.net (ecrist@secure-computing.net) Date: Thu May 8 10:29:54 2008 Subject: [X-Unix] old port for ssh In-Reply-To: References: Message-ID: <20080508172909.210D01707C@snipe.secure-computing.net> <141516AA-2018-43ED-B6B2-FA253F827145@lvnv.com> <9088D4EF-D336-4CBF-9C32-1939E8202887@myrealbox.com> Message-ID: <7d98f3a1a83ce97eefde83e13ed08836@localhost> X-Sender: ecrist@secure-computing.net Received: from 74-95-66-25-Minnesota.hfc.comcastbusiness.net [74.95.66.25] via tank.he-ip6.secure-computing.net [2001:470:1f01:724::150] with HTTP/1.1 (POST); Thu, 08 May 2008 12:29:09 -0500 User-Agent: Secure Computing WebMail Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Thu, 8 May 2008 10:21:21 -0700, M K wrote: > > On May 8, 2008, at 8:29 AM, Stroller wrote: > >> >> On 8 May 2008, at 03:38, M K wrote: >>> ... >>>> The ssh command has the option to specify what version is used when >>>> connecting to a remote host. I believe it's ssh -p - >>>> >>>> username@host, replace with 1 or 2. I think if you put >>>> a 1 >>>> there, things will work just fine. >>> >>> >>> No luck... I tried it just to be sure. >>> it has to be SSH v2 >>> >>> this is the error I get by the way... >>> channel 0: open failed: resource shortage: Channel open failed >>> >>> and like I said, it only happens in openSSH 4.6 and later... >>> >>> I'm sure it's bug in their SSH Daemon...so I need to get an old >>> port of OpenSSH >> >> It might just be that the client on your machine is trying to >> enforce security standards which weren't available when the older >> server was written. It may not be the version you have to change, >> but something else - look, for example, at the variety of -o options >> in `man ssh`. >> >> You might find that `ssh -v hostname` (or `ssh -v -v hostname` or >> `ssh -v -v -v hostname`) gives more information about the problem >> and enables you to find a workaround (using the current client). >> >> Stroller. > > thanks, those are good ideas. > > I've already sent them the ssh -vvv output so they could see > where everything was getting gummed up... > I haven't heard back from them... > > but in the meantime, I have to shell into another box then shell into > the switch...it's just a pain... > > I guess I could look at it like it's inherently more secure ... Why not try sending us the output? Eric From maggiw at gmail.com Fri May 9 16:27:15 2008 From: maggiw at gmail.com (maggi w) Date: Fri May 9 16:27:27 2008 Subject: [X-Unix] log Message-ID: <59511130805091627idada575ke6dc47be4cb9109e@mail.gmail.com> " Location: Ohio, United States d-n-f will attend WWFM III - Cleveland Rocks!! (Event Cache) at 5/9/2008 Log Date: 5/9/2008 see you tomorrow" awesome!! cya tom'row!! - maggi and michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20080509/10125886/attachment.html From ecrist at secure-computing.net Fri May 9 17:26:35 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Fri May 9 17:27:19 2008 Subject: [X-Unix] log In-Reply-To: <59511130805091627idada575ke6dc47be4cb9109e@mail.gmail.com> References: <59511130805091627idada575ke6dc47be4cb9109e@mail.gmail.com> Message-ID: <144D10D0-5100-421A-B5A1-02513C895229@secure-computing.net> ??? On May 9, 2008, at 6:27 PM, maggi w wrote: > " Location: Ohio, United States > d-n-f will attend WWFM III - Cleveland Rocks!! (Event Cache) at > 5/9/2008 > > Log Date: 5/9/2008 > see you tomorrow" > > awesome!! cya tom'row!! > > - maggi and michael > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix ----- Eric F Crist Secure Computing Networks From maggiw at gmail.com Fri May 9 17:31:38 2008 From: maggiw at gmail.com (maggi w) Date: Fri May 9 17:31:47 2008 Subject: [X-Unix] log In-Reply-To: <144D10D0-5100-421A-B5A1-02513C895229@secure-computing.net> References: <59511130805091627idada575ke6dc47be4cb9109e@mail.gmail.com> <144D10D0-5100-421A-B5A1-02513C895229@secure-computing.net> Message-ID: <59511130805091731y660d7431w833d829d7598b1e@mail.gmail.com> ugghh sorry, hit the tab completion before getting to the correct address :( On Fri, May 9, 2008 at 8:26 PM, Eric F Crist wrote: > ??? > > > On May 9, 2008, at 6:27 PM, maggi w wrote: > > " Location: Ohio, United States >> d-n-f will attend WWFM III - Cleveland Rocks!! (Event Cache) at 5/9/2008 >> >> Log Date: 5/9/2008 >> see you tomorrow" >> >> awesome!! cya tom'row!! >> >> - maggi and michael >> _______________________________________________ >> X-Unix mailing list >> X-Unix@listserver.themacintoshguy.com >> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix >> > > ----- > Eric F Crist > Secure Computing Networks > > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20080509/cffbb5d7/attachment.html From ecrist at secure-computing.net Fri May 9 17:36:01 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Fri May 9 17:36:43 2008 Subject: [X-Unix] log In-Reply-To: <59511130805091731y660d7431w833d829d7598b1e@mail.gmail.com> References: <59511130805091627idada575ke6dc47be4cb9109e@mail.gmail.com> <144D10D0-5100-421A-B5A1-02513C895229@secure-computing.net> <59511130805091731y660d7431w833d829d7598b1e@mail.gmail.com> Message-ID: <41D0E1D3-3856-4C9E-B940-ADA95A83B271@secure-computing.net> This looked suspiciously like a geocache 'did not find' message... Eric On May 9, 2008, at 7:31 PM, maggi w wrote: > ugghh sorry, hit the tab completion before getting to the correct > address :( > > On Fri, May 9, 2008 at 8:26 PM, Eric F Crist > wrote: > ??? > > > On May 9, 2008, at 6:27 PM, maggi w wrote: > > " Location: Ohio, United States > d-n-f will attend WWFM III - Cleveland Rocks!! (Event Cache) at > 5/9/2008 > > Log Date: 5/9/2008 > see you tomorrow" > > awesome!! cya tom'row!! > > - maggi and michael > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > > ----- > Eric F Crist > Secure Computing Networks > > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix ----- Eric F Crist Secure Computing Networks From maggiw at gmail.com Fri May 9 17:40:20 2008 From: maggiw at gmail.com (maggi w) Date: Fri May 9 17:40:30 2008 Subject: [X-Unix] log In-Reply-To: <41D0E1D3-3856-4C9E-B940-ADA95A83B271@secure-computing.net> References: <59511130805091627idada575ke6dc47be4cb9109e@mail.gmail.com> <144D10D0-5100-421A-B5A1-02513C895229@secure-computing.net> <59511130805091731y660d7431w833d829d7598b1e@mail.gmail.com> <41D0E1D3-3856-4C9E-B940-ADA95A83B271@secure-computing.net> Message-ID: <59511130805091740s45b239fbvd6f0931ded4a456d@mail.gmail.com> actually, their geocaching nick is d-n-f so you are on the right track .. lol On Fri, May 9, 2008 at 8:36 PM, Eric F Crist wrote: > This looked suspiciously like a geocache 'did not find' message... > > Eric > > > > On May 9, 2008, at 7:31 PM, maggi w wrote: > > ugghh sorry, hit the tab completion before getting to the correct address >> :( >> >> On Fri, May 9, 2008 at 8:26 PM, Eric F Crist >> wrote: >> ??? >> >> >> On May 9, 2008, at 6:27 PM, maggi w wrote: >> >> " Location: Ohio, United States >> d-n-f will attend WWFM III - Cleveland Rocks!! (Event Cache) at 5/9/2008 >> >> Log Date: 5/9/2008 >> see you tomorrow" >> >> awesome!! cya tom'row!! >> >> - maggi and michael >> _______________________________________________ >> X-Unix mailing list >> X-Unix@listserver.themacintoshguy.com >> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix >> >> ----- >> Eric F Crist >> Secure Computing Networks >> >> >> _______________________________________________ >> X-Unix mailing list >> X-Unix@listserver.themacintoshguy.com >> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix >> >> _______________________________________________ >> X-Unix mailing list >> X-Unix@listserver.themacintoshguy.com >> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix >> > > ----- > Eric F Crist > Secure Computing Networks > > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20080509/1903df96/attachment.html From x-unix at listserver.themacintoshguy.com Mon May 19 12:41:16 2008 From: x-unix at listserver.themacintoshguy.com (VIAGRA ® Official Site) Date: Mon May 19 12:43:23 2008 Subject: [X-Unix] Dear x-unix@listserver.themacintoshguy.com May 86% 0FF Message-ID: <20080520114143.5904.qmail@USER-687C598359> An HTML attachment was scrubbed... URL: http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20080519/a1ff4429/attachment.html From jerry at ieee.org Fri May 23 07:21:48 2008 From: jerry at ieee.org (Jerry Krinock) Date: Fri May 23 07:22:02 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? Message-ID: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> I want to ship someone a directory containing two files: a shell script and a tool. Within the shell script, I'd like to invoke the tool. And I want it idiot-proofed to work regardless of where the user drops my directory. So, I need the path to the tool within the script. It seems like a bash shell script should have an environment variable available giving the path to it's own parent directory, but I don't see any such thing in printenv output. How can I do this? Thanks, Jerry Krinock From ecrist at secure-computing.net Fri May 23 07:28:07 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Fri May 23 07:28:51 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> Message-ID: <28C84F38-931A-46AE-92EA-059DDA947E24@secure-computing.net> On May 23, 2008, at 9:21 AM, Jerry Krinock wrote: > I want to ship someone a directory containing two files: a shell > script and a tool. Within the shell script, I'd like to invoke the > tool. And I want it idiot-proofed to work regardless of where the > user drops my directory. > > So, I need the path to the tool within the script. It seems like a > bash shell script should have an environment variable available > giving the path to it's own parent directory, but I don't see any > such thing in printenv output. > > How can I do this? Jerry, Simply require that the tool which is called be within the same directory as the script. From there, you can figure out you current working directory, or simply call the tool with ./tool_name. Hope this helps. ----- Eric F Crist Secure Computing Networks From ecrist at secure-computing.net Fri May 23 07:37:18 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Fri May 23 07:38:14 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <28C84F38-931A-46AE-92EA-059DDA947E24@secure-computing.net> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> <28C84F38-931A-46AE-92EA-059DDA947E24@secure-computing.net> Message-ID: On May 23, 2008, at 9:28 AM, Eric F Crist wrote: > On May 23, 2008, at 9:21 AM, Jerry Krinock wrote: > >> I want to ship someone a directory containing two files: a shell >> script and a tool. Within the shell script, I'd like to invoke the >> tool. And I want it idiot-proofed to work regardless of where the >> user drops my directory. >> >> So, I need the path to the tool within the script. It seems like a >> bash shell script should have an environment variable available >> giving the path to it's own parent directory, but I don't see any >> such thing in printenv output. >> >> How can I do this? > > > Jerry, > > Simply require that the tool which is called be within the same > directory as the script. From there, you can figure out you current > working directory, or simply call the tool with ./tool_name. > > Hope this helps. Sorry for the self-reply, but there's another method, building off what I stated above. You may, if the user calls your utility from another directory, need to know that directory information. $0 is a special variable containing the name of the script itself, feeding this to the command dirname will get you a valid path to the script. #!/bin/sh echo "I live in `dirname $0`" Simply put this in test.sh within your home directory, and do the following to see: cd / sh ~/test.sh Hope this clarifies a bit. ----- Eric F Crist Secure Computing Networks From macmonster at myrealbox.com Fri May 23 11:32:56 2008 From: macmonster at myrealbox.com (Stroller) Date: Fri May 23 11:33:11 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> Message-ID: <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> On 23 May 2008, at 15:21, Jerry Krinock wrote: > I want to ship someone a directory containing two files: a shell > script and a tool. Within the shell script, I'd like to invoke the > tool. And I want it idiot-proofed to work regardless of where the > user drops my directory. > > So, I need the path to the tool within the script... $ touch foo.sh bar.sh $ echo '#!/bin/bash' > foo.sh $ echo '#!/bin/bash' > bar.sh $ echo 'echo "it worked!"' >> bar.sh $ echo "./bar.sh" >> foo.sh $ chmod +x *.sh $ ./foo.sh it worked! $ In other words, the path to the current working directory is "./" Stroller. From ecrist at secure-computing.net Fri May 23 11:55:01 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Fri May 23 11:56:28 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> Message-ID: <70E3ECB2-A31A-4013-AC70-1EF8A47F1FA0@secure-computing.net> On May 23, 2008, at 1:32 PM, Stroller wrote: > > On 23 May 2008, at 15:21, Jerry Krinock wrote: > >> I want to ship someone a directory containing two files: a shell >> script and a tool. Within the shell script, I'd like to invoke the >> tool. And I want it idiot-proofed to work regardless of where the >> user drops my directory. >> >> So, I need the path to the tool within the script... > > $ touch foo.sh bar.sh > $ echo '#!/bin/bash' > foo.sh > $ echo '#!/bin/bash' > bar.sh > $ echo 'echo "it worked!"' >> bar.sh > $ echo "./bar.sh" >> foo.sh > $ chmod +x *.sh > $ ./foo.sh > it worked! > $ > > In other words, the path to the current working directory is "./" > > Stroller. His current working directory may not be . relative to the directory his script and tool reside in. I think that's the rub. dirname $0 I think is his best solution, aside from having his friend possibly put his script and/or tool somewhere within their PATH. ----- Eric F Crist Secure Computing Networks From jerry at ieee.org Fri May 23 11:58:18 2008 From: jerry at ieee.org (Jerry Krinock) Date: Fri May 23 11:58:32 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> Message-ID: <1276E405-FC7D-45DB-963C-5BF30501D224@ieee.org> Thank you, folks. All three methods work! From jerry at ieee.org Fri May 23 12:00:31 2008 From: jerry at ieee.org (Jerry Krinock) Date: Fri May 23 12:00:41 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <70E3ECB2-A31A-4013-AC70-1EF8A47F1FA0@secure-computing.net> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> <70E3ECB2-A31A-4013-AC70-1EF8A47F1FA0@secure-computing.net> Message-ID: <63CCEA86-8352-45EC-8C05-10589373AECB@ieee.org> On 2008 May, 23, at 11:55, Eric F Crist wrote: > His current working directory may not be . relative to the directory > his script and tool reside in. I think that's the rub. dirname $0 > I think is his best solution, aside from having his friend possibly > put his script and/or tool somewhere within their PATH. Yes, at first I found that the other methods didn't work when I ran the script as a .command by doubleclicking it. But then when I retested, the PWD was the directory that the script was in. Anyhow, I'm using dirname $0 since I agree it is safer. From fin at finseth.com Fri May 23 12:12:18 2008 From: fin at finseth.com (Craig A. Finseth) Date: Fri May 23 12:12:49 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> (message from Stroller on Fri, 23 May 2008 19:32:56 +0100) References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> Message-ID: <20080523191218.F405D76D12@isis.visi.com> ... In other words, the path to the current working directory is "./" ... Yes. And ../ points to the parent. When you get all the way to the root, ../ = ./ Craig From Peter_Dyballa at Web.DE Fri May 23 12:30:15 2008 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Fri May 23 12:32:44 2008 Subject: [X-Unix] Re: Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <20080523142859.F090F241EBCA@listserver.themacintoshguy.com> References: <20080523142859.F090F241EBCA@listserver.themacintoshguy.com> Message-ID: <73D18962-F0F3-48F8-85F6-0C5A6FBBB743@Web.DE> Am 23.05.2008 um 16:28 schrieb Jerry Krinock: > I want to ship someone a directory containing two files: a shell > script and a tool. Within the shell script, I'd like to invoke the > tool. And I want it idiot-proofed to work regardless of where the > user drops my directory. `dirname $0` or $(dirname $0) should return the path to the script, i.e., the name of the directory containing both the script and the tool. Don't forget to think of spaces in the path! -- Greetings Pete ?Twas a woman who drove me to drink, and I never had the courtesy to thank her for it. ? W.C. Fields From macmonster at myrealbox.com Fri May 23 12:38:12 2008 From: macmonster at myrealbox.com (Stroller) Date: Fri May 23 12:38:39 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <70E3ECB2-A31A-4013-AC70-1EF8A47F1FA0@secure-computing.net> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> <70E3ECB2-A31A-4013-AC70-1EF8A47F1FA0@secure-computing.net> Message-ID: <7F0F63F3-8200-4ADE-9EAF-0482648869C7@myrealbox.com> On 23 May 2008, at 19:55, Eric F Crist wrote: > On May 23, 2008, at 1:32 PM, Stroller wrote: >> On 23 May 2008, at 15:21, Jerry Krinock wrote: >> >>> I want to ship someone a directory containing two files: a shell >>> script and a tool. Within the shell script, I'd like to invoke >>> the tool. And I want it idiot-proofed to work regardless of >>> where the user drops my directory. >>> >>> So, I need the path to the tool within the script... >> >> ... >> In other words, the path to the current working directory is "./" >> >> Stroller. > > His current working directory may not be . relative to the > directory his script and tool reside in. I think that's the rub. > dirname $0 I think is his best solution, aside from having his > friend possibly put his script and/or tool somewhere within their > PATH. Doh! Excuse me. You're quite right that dirname is the right way to do it. I don't know why I was incapable of grokking your replies before I posted myself. Stroller. From macmonster at myrealbox.com Fri May 23 12:49:39 2008 From: macmonster at myrealbox.com (Stroller) Date: Fri May 23 12:51:55 2008 Subject: [X-Unix] How to REALLY kill Finder. Message-ID: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> Hi there, I posted this question to http://discussions.apple.com before realising that you guys will probably have some better answers. So please excuse me in the (unlikely) event you read this twice. Last night I was converting a bunch of video files in Quicktime and copying them to a samba server on the LAN (so I could play them on my Linux-based media machine) when the Finder stopped responding and I got the spinning beachball of death. The beachball appeared when I clicked on one of the files in Finder and it tried to generate a preview in column-view. The media files were fairly big ones (1 gig) and .mkv format (which seem particularly processor-intensive to decode) and I'm pretty sure the file in question was on the Samba server. So all in all everything seemed to be against the Finder creating this preview and I figured it was going to take a long time to do so, so I'd just force-relaunch the Finder and go back and open the folder in a different view in order to copy it wherever it needed to be. After doing so, though, Finder fails to restart - I've got no icons on my desktop and I can't navigate to a folder of files to click on the one I want to view. Often in the past when I've experienced this, typing `open /path/to/ folder` in terminal has had the effect of forcing Finder to restart, however on this occasion I get this error message: "2008-05-23 18:11:07.383 open7567 LSOpenFromURLSpec() returned -600 for application (null) urls file://localhost/Applications/." If I look for the process using `ps` I see the process name in brackets: $ ps -wwwwwx | grep Finder 5958 ?? E 0:00.00 (Finder) $ I presume the brackets indicate that Finder is behaving badly, but `man ps` doesn't seem to explain exactly what they mean. Apparently the "E" in the above line indicates that the process is trying to exit. Anyway, I can't get any further using `kill -9 5958` or anything else I've tried so far. The Finder icon is still showing in the Dock and if I right-click on it I see "Application not responding" (greyed out), "Hide" and "Relaunch". Choosing "Relaunch" has no effect. Finder does not seem to appear in Activity Monitor (showing "All Processes") . If I open the "Force Quit Applications" dialogue again the Finder is still shown and highlighting it changes the button from "Force Quit" to "Relaunch", but clicking that has no effect (except that Finder disappears from the lit of programs; it reappears if I close the "Force Quit" window and reopen it from the Apple menu). Obviously I could sort this by rebooting my computer, but I really don't want to do that right now. Can anyone suggest a way of properly killing this process so that Finder can restart? (a way that doesn't kill off all my active windows, that is!) Many thanks in advance for any suggestions, Stroller. From ecrist at secure-computing.net Fri May 23 22:25:24 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Fri May 23 22:26:17 2008 Subject: [X-Unix] How to REALLY kill Finder. In-Reply-To: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> References: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> Message-ID: On May 23, 2008, at 2:49 PM, Stroller wrote: > Hi there, > > I posted this question to http://discussions.apple.com before > realising that you guys will probably have some better answers. So > please excuse me in the (unlikely) event you read this twice. > > Last night I was converting a bunch of video files in Quicktime and > copying them to a samba server on the LAN (so I could play them on > my Linux-based media machine) when the Finder stopped responding and > I got the spinning beachball of death. > > The beachball appeared when I clicked on one of the files in Finder > and it tried to generate a preview in column-view. The media files > were fairly big ones (1 gig) and .mkv format (which seem > particularly processor-intensive to decode) and I'm pretty sure the > file in question was on the Samba server. > > So all in all everything seemed to be against the Finder creating > this preview and I figured it was going to take a long time to do > so, so I'd just force-relaunch the Finder and go back and open the > folder in a different view in order to copy it wherever it needed to > be. > > After doing so, though, Finder fails to restart - I've got no icons > on my desktop and I can't navigate to a folder of files to click on > the one I want to view. > > Often in the past when I've experienced this, typing `open /path/to/ > folder` in terminal has had the effect of forcing Finder to restart, > however on this occasion I get this error message: > "2008-05-23 18:11:07.383 open7567 LSOpenFromURLSpec() returned -600 > for application (null) urls file://localhost/Applications/." > > If I look for the process using `ps` I see the process name in > brackets: > $ ps -wwwwwx | grep Finder > 5958 ?? E 0:00.00 (Finder) > $ > I presume the brackets indicate that Finder is behaving badly, but > `man ps` doesn't seem to explain exactly what they mean. Apparently > the "E" in the above line indicates that the process is trying to > exit. > > Anyway, I can't get any further using `kill -9 5958` or anything > else I've tried so far. > > The Finder icon is still showing in the Dock and if I right-click on > it I see "Application not responding" (greyed out), "Hide" and > "Relaunch". Choosing "Relaunch" has no effect. Finder does not seem > to appear in Activity Monitor (showing "All Processes") . If I open > the "Force Quit Applications" dialogue again the Finder is still > shown and highlighting it changes the button from "Force Quit" to > "Relaunch", but clicking that has no effect (except that Finder > disappears from the lit of programs; it reappears if I close the > "Force Quit" window and reopen it from the Apple menu). > > Obviously I could sort this by rebooting my computer, but I really > don't want to do that right now. Can anyone suggest a way of > properly killing this process so that Finder can restart? (a way > that doesn't kill off all my active windows, that is!) > > Many thanks in advance for any suggestions, I tried to post a reply earlier, but it was reject due to being >5K. First, I would try to kill the process that's involved with transferring or otherwise reading the file over the network. Second, if that fails, I'd try killing the process that's involved with QuickLook. I don't think this is internal to Finder itself, so there should be a separate process. reading through all of the output for your user with ps should at least give you some clues as to what you can try to kill along the way. Unfortunately, the only thing you can do is experiment. The disturbing thing is that a kill -9 on Finder isn't working. You could try nice(ing) the processes you're interested in save to get them the proc time so you can save your work, but I'm afraid you may be stuck rebooting the system if all this fails. Hope this helps. Try posting a copy of a ps auxwwwww here, or at least directly to me. ----- Eric F Crist Secure Computing Networks From ecrist at secure-computing.net Fri May 23 22:27:14 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Fri May 23 22:27:59 2008 Subject: [X-Unix] Shell Script: How get parent path to invoke a sister tool? In-Reply-To: <20080523191218.F405D76D12@isis.visi.com> References: <62749EB1-9B7E-4A47-BE1C-53E01C097C68@ieee.org> <270A0767-65A3-4C1C-8C6E-1783CA311B8D@myrealbox.com> <20080523191218.F405D76D12@isis.visi.com> Message-ID: <952FD24C-8CC1-4F65-86D3-E03C7808135B@secure-computing.net> On May 23, 2008, at 2:12 PM, Craig A. Finseth wrote: > ... > In other words, the path to the current working directory is "./" > ... > > Yes. And > > ../ > > points to the parent. When you get all the way to the root, ../ = ./ Which has no relevance if the program is executed from an arbitrary directory outside the directory which contains the two aforementioned files... ----- Eric F Crist Secure Computing Networks From macmonster at myrealbox.com Sat May 24 13:41:48 2008 From: macmonster at myrealbox.com (Stroller) Date: Sat May 24 13:42:21 2008 Subject: [X-Unix] How to REALLY kill Finder. In-Reply-To: References: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> Message-ID: <508B9A3B-EF5E-4E1C-916D-DD3A6A6F2288@myrealbox.com> On 24 May 2008, at 06:25, Eric F Crist wrote: > On May 23, 2008, at 2:49 PM, Stroller wrote: >> ... >> Last night I was converting a bunch of video files in Quicktime >> and copying them to a samba server on the LAN (so I could play >> them on my Linux-based media machine) when the Finder stopped >> responding and I got the spinning beachball of death. >> >> The beachball appeared when I clicked on one of the files in >> Finder and it tried to generate a preview in column-view. The >> media files were fairly big ones (1 gig) and .mkv format (which >> seem particularly processor-intensive to decode) and I'm pretty >> sure the file in question was on the Samba server. >> >> So ... I figured ... I'd just force-relaunch the Finder and go >> back and open the folder in a different view in order to copy it >> wherever it needed to be. >> >> After doing so, though, Finder fails to restart - I've got no >> icons on my desktop and I can't navigate to a folder of files to >> click on the one I want to view. > > I tried to post a reply earlier, but it was reject due to being >5K. If you have a copy in sent items then perhaps you could resend a copy direct to me, so I can enjoy your 5K of wisdom. > First, I would try to kill the process that's involved with > transferring or otherwise reading the file over the network. Hmmmn, I thought that WAS Finder that did this. > Second, if that fails, I'd try killing the process that's involved > with QuickLook. I don't think this is internal to Finder itself, > so there should be a separate process. Ah! No, I'm using 10.4 - the preview that it was generating was this kind: http://www.bioneural.net/wp-content/uploads/iblog/d70rawtiger.jpg (except of a movie, obviously) > reading through all of the output for your user with ps should at > least give you some clues as to what you can try to kill along the > way. Unfortunately, the only thing you can do is experiment. The > disturbing thing is that a kill -9 on Finder isn't working. > Hope this helps. Try posting a copy of a ps auxwwwww here, or at > least directly to me. Attached. Had to zip it because it was 8k alone. The most interesting process is "/sbin/umount -f /Volumes/4GIG CF" - this refers to a CFcard that was plugged into my Mac through an adaptor dongle. Maybe my memory is mistaken as to what I was doing when Finder died, because copying to this CFcard stalled at c 20% and I got a complaint about removal when I pulled it. Perhaps its this unmount process that's holding the Finder up, but that doesn't respond to `sudo kill -9 6180`either. Is there any way to force restart the disk automounting daemon? > You could try nice(ing) the processes you're interested in save to > get them the proc time so you can save your work, but I'm afraid > you may be stuck rebooting the system if all this fails. That's not the problem at all - everything else on my system is running fine. There's no problem with stuff hogging the CPU - other applications respond quickly and I can save from them. It's just that I don't want to close this particular program if I can help it, because one *can't* save its state. It's actually not that important and I guess I could reboot if I had to, but this is annoying me, now, and I'd just like to get to the bottom of the problem. Stroller. From jwarms at mac.com Sat May 24 17:42:44 2008 From: jwarms at mac.com (Jon Warms) Date: Sat May 24 17:42:50 2008 Subject: [X-Unix] Was Folder, Became Application. Help! Message-ID: I wanted to change iTunes' Library, so I, ill-advisedly, dragged the Library icon and dropped it on the iTunes application. It didn't work, but the Library changed to an application. Apparently, it's all there; it was about 30+ megabytes as a library, and it's about that size as an application. How do I change it back to my iTunes Library? Or just a form I can pull my music files out of. I'm not exactly sure I am correctly describing my missteps that brought me here, but that's not the point. After this happened, I did some research & found the correct way to have iTunes use a new library. But I'd like to restore the clobbered folders. I used ed to look at the .app file, but I don't know what makes it an application and how to change that to a folder type. TIA. Jon From macmonster at myrealbox.com Sat May 24 19:02:27 2008 From: macmonster at myrealbox.com (Stroller) Date: Sat May 24 19:02:42 2008 Subject: [X-Unix] Was Folder, Became Application. Help! In-Reply-To: References: Message-ID: <661EA1F6-1070-43EA-9B5B-7F7B4E0C7B5A@myrealbox.com> On 25 May 2008, at 01:42, Jon Warms wrote: > ... It didn't work, but the Library changed to > an application. Apparently, it's all there; it was about > 30+ megabytes as a library, and it's about that size as > an application. This doesn't make sense to me, but then I've never done quite what you describe. Open iTunes > Preferences > Advanced > General. What does it say under "iTunes Music Folder Location"? I would not click the change or reset buttons at that point. Open Terminal and type `ls ` (with the space, no quotes) and drag and drop the "Library application" on to it. Press enter. What does it say? Paste the results back to us. > But I'd like to restore the clobbered folders. I used > ed to look at the .app file, but I don't know what > makes it an application and how to change that to > a folder type. What kind of Application is it? A white icon with a little red & yellow triangle or whatever on it? An application is merely a folder that has .app appended to the name. So you can probably `cp -rvf ` this folder somewhere and then `mv foldername.app folder`. Stroller. From cutolo at unina.it Tue May 27 00:52:29 2008 From: cutolo at unina.it (Giovanni Cutolo) Date: Tue May 27 00:52:42 2008 Subject: [X-Unix] compiling php Message-ID: <4CC1A2CE-8E8A-4E79-8F45-B427191DB8D2@unina.it> Hi all, I am trying to compile php 5.2.6 on my MacBook (Leopard), since I need the pgsql module that is not in the php build shipped by Apple (why?, if I may ask). So I try with ./compile /SourceCache/apache_mod_php/apache_mod_php-44/php/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info -- disable-dependency-tracking --with-apxs2=/usr/sbin/apxs --with-ldap=/ usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable- trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring -- enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with- curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc -- with-mysql-sock=/var/mysql --with-mysqli=/usr/bin/mysql_config --with- mysql=/usr --with-pgsql=shared,/Library/PostgreSQL8/ --with-openssl -- with-xmlrpc --with-xsl=/usr --without-pear (that is, the compilation options chosen by Apple, as I can read them from the phpinfo command, plus --with-pgsql=shared,/Library/ PostgreSQL8/ . Well, this fails because, apparently, of some problems with openssl (which I also need, of course): ........ Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking for OpenSSL support... yes checking for Kerberos support... /usr checking for krb5-config... /usr/bin/krb5-config checking for DSA_get_default_method in -lssl... no checking for pkg-config... no configure: error: Cannot find OpenSSL's libraries Does anybody have any hint on why this happens and what could I do to fix it? Unless I am wrong the libraries are in place. I also tried the trick suggested by http://www.heritage-tech.net/165/getting-additional-php-modules-without-totally-recompiling/ (also see http://www2.russbrooks.com:8080/2007/11/4/install-postgresql-on-mac-os-x-10-5-leopard#comment-138 ) that is: compiling the module itself (using the source of php 5.2.5) and then moving it to the appropriate (?) location in the pre-existing installation of php. No avail: the module is simply ignored. Thank in advance. Giovanni Cutolo ======================================== Dr. Giovanni Cutolo Dipartimento di Matematica e Applicazioni "R. Caccioppoli" Universita` degli Studi di Napoli "Federico II" tel.: +39 081675695 fax (not personal): +39 0817662106 http://www.dma.unina.it/~cutolo/ e-mail: cutolo@unina.it From ecrist at secure-computing.net Tue May 27 04:12:51 2008 From: ecrist at secure-computing.net (=?utf-8?B?RXJpYyBGIENyaXN0?=) Date: Tue May 27 04:14:38 2008 Subject: [X-Unix] compiling php In-Reply-To: <4CC1A2CE-8E8A-4E79-8F45-B427191DB8D2@unina.it> References: <4CC1A2CE-8E8A-4E79-8F45-B427191DB8D2@unina.it> Message-ID: <504040188-1211886864-cardhu_decombobulator_blackberry.rim.net-369783288-@bxe160.bisx.prod.on.blackberry> The module is ignored because you need to add it to the PHP Extensions config file. Add it there and I'm sure you'll be fine. --- Eric F Crist Secure Computing Networks -----Original Message----- From: Giovanni Cutolo Date: Tue, 27 May 2008 09:52:29 To:"A place to discuss Mac OS X from the perspective of the command line." Subject: [X-Unix] compiling php Hi all, I am trying to compile php 5.2.6 on my MacBook (Leopard), since I need the pgsql module that is not in the php build shipped by Apple (why?, if I may ask). So I try with ../compile /SourceCache/apache_mod_php/apache_mod_php-44/php/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info -- disable-dependency-tracking --with-apxs2=/usr/sbin/apxs --with-ldap=/ usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable- trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring -- enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with- curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc -- with-mysql-sock=/var/mysql --with-mysqli=/usr/bin/mysql_config --with- mysql=/usr --with-pgsql=shared,/Library/PostgreSQL8/ --with-openssl -- with-xmlrpc --with-xsl=/usr --without-pear (that is, the compilation options chosen by Apple, as I can read them from the phpinfo command, plus --with-pgsql=shared,/Library/ PostgreSQL8/ . Well, this fails because, apparently, of some problems with openssl (which I also need, of course): ......... Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking for OpenSSL support... yes checking for Kerberos support... /usr checking for krb5-config... /usr/bin/krb5-config checking for DSA_get_default_method in -lssl... no checking for pkg-config... no configure: error: Cannot find OpenSSL's libraries Does anybody have any hint on why this happens and what could I do to fix it? Unless I am wrong the libraries are in place. I also tried the trick suggested by http://www.heritage-tech.net/165/getting-additional-php-modules-without-totally-recompiling/ (also see http://www2.russbrooks.com:8080/2007/11/4/install-postgresql-on-mac-os-x-10-5-leopard#comment-138 ) that is: compiling the module itself (using the source of php 5.2.5) and then moving it to the appropriate (?) location in the pre-existing installation of php. No avail: the module is simply ignored. Thank in advance. Giovanni Cutolo ======================================== Dr. Giovanni Cutolo Dipartimento di Matematica e Applicazioni "R. Caccioppoli" Universita` degli Studi di Napoli "Federico II" tel.: +39 081675695 fax (not personal): +39 0817662106 http://www.dma.unina.it/~cutolo/ e-mail: cutolo@unina.it _______________________________________________ X-Unix mailing list X-Unix@listserver.themacintoshguy.com http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From ecrist at secure-computing.net Tue May 27 08:57:21 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Tue May 27 08:59:01 2008 Subject: [X-Unix] compiling php In-Reply-To: <504040188-1211886864-cardhu_decombobulator_blackberry.rim.net-369783288-@bxe160.bisx.prod.on.blackberry> References: <4CC1A2CE-8E8A-4E79-8F45-B427191DB8D2@unina.it> <504040188-1211886864-cardhu_decombobulator_blackberry.rim.net-369783288-@bxe160.bisx.prod.on.blackberry> Message-ID: <51FD5E69-E6B0-4CDF-AD8F-E7B898673672@secure-computing.net> On May 27, 2008, at 6:12 AM, Eric F Crist wrote: > The module is ignored because you need to add it to the PHP > Extensions config file. Add it there and I'm sure you'll be fine. > > -----Original Message----- > From: Giovanni Cutolo > > Hi all, > > I am trying to compile php 5.2.6 on my MacBook (Leopard), since I need > the pgsql module that is not in the php build shipped by Apple (why?, > if I may ask). So I try with > ... > that is: compiling the module itself (using the source of php 5.2.5) > and then moving it to the appropriate (?) location in the pre-existing > installation of php. No avail: the module is simply ignored. To elaborate from my earlier email, I found this is /private/etc/ php.ini.default, about 50% of the way down: ; If you wish to have an extension loaded automatically, use the following ; syntax: ; ; extension=modulename.extension ; ; For example, on Windows: ; ; extension=msql.dll ; ; ... or under UNIX: ; ; extension=msql.so ; ; Note that it should be the name of the module only; no directory information ; needs to go here. Specify the location of the extension with the ; extension_dir directive above. That file, in it's entirety, is a good read for configuring PHP. You'll need to make sure your module gets loaded in the correct location, as well as adding the appropriate extension=foo line. HTH ----- Eric F Crist Secure Computing Networks From alex at underwares.org Tue May 27 10:29:22 2008 From: alex at underwares.org (Alexandre Gauthier) Date: Tue May 27 10:29:35 2008 Subject: [X-Unix] compiling php In-Reply-To: <51FD5E69-E6B0-4CDF-AD8F-E7B898673672@secure-computing.net> References: <51FD5E69-E6B0-4CDF-AD8F-E7B898673672@secure-computing.net> Message-ID: <7430166ddeae27c730bc21c35af4779d@valkyrie.underwares.org> On Tue, 27 May 2008 10:57:21 -0500, Eric F Crist wrote: > On May 27, 2008, at 6:12 AM, Eric F Crist wrote: > >> The module is ignored because you need to add it to the PHP >> Extensions config file. Add it there and I'm sure you'll be fine. >> >> -----Original Message----- >> From: Giovanni Cutolo >> >> Hi all, >> >> I am trying to compile php 5.2.6 on my MacBook (Leopard), since I need >> the pgsql module that is not in the php build shipped by Apple (why?, >> if I may ask). So I try with >> > ... > >> that is: compiling the module itself (using the source of php 5.2.5) >> and then moving it to the appropriate (?) location in the pre-existing >> installation of php. No avail: the module is simply ignored. > > > To elaborate from my earlier email, I found this is /private/etc/ > php.ini.default, about 50% of the way down: > ----- 8<-snip--snip-8<------ > That file, in it's entirety, is a good read for configuring PHP. > You'll need to make sure your module gets loaded in the correct > location, as well as adding the appropriate extension=foo line. > To further complete what Eric said, I'd like to mention that you need to comment out the line defining extension_dir as "./" in php.ini, by adding a semicolon in front of it. Then, simply add the name of the module which I assume you compiled by running phpize in the module directory, and then installed with make install. (most likely pgsql.o) You may then restart apache running 'sudo apachectl restart'. I just added GD2 support to the default Apple PHP install, and it worked fine. 'phpize' should work out the details for you, such as the module location. Hope this help. From jwarms at mac.com Tue May 27 11:30:04 2008 From: jwarms at mac.com (Jon Warms) Date: Tue May 27 11:30:12 2008 Subject: [X-Unix] Was Folder, Became Application In-Reply-To: <20080527172934.736CC2509922@listserver.themacintoshguy.com> References: <20080527172934.736CC2509922@listserver.themacintoshguy.com> Message-ID: <328BA80B-335B-405B-AD43-35B6BDB29604@mac.com> Stroller- Thank you. I think I misstated the problem. I can change the "application" back to a file, just by removing the extension. But I can't open it. IOW, I can't restore the hierarchical folder structure. For example, I copied the large file as you suggested, and got another equally sized file. But when I tried to cd to the new file, I got "Not a directory." That's what my problem is. And, of course, when I try to open the large file, Finder asks me to choose an application. As I said in my first posting, I can open the file in an editor (I used ed) and see the 30+ megabytes, but I don't know how to make sense of it. I'm assuming the original folder structure is intact, but some header data has been changed. The size of the large file is about the same as my original iTunes Library was. (I didn't track the exact size.) I just was hoping there was some header data I could remove that would make the original folder structure reappear. Way back when OS X disposed of the resource forks, maybe there was something inserted in the header of an application file to replace it. Wishful thinking? Jon On May 27, 2008, at 1:29 PM, Stroller wrote: >> But I'd like to restore the clobbered folders. I used >> ed to look at the .app file, but I don't know what >> makes it an application and how to change that to >> a folder type. > > What kind of Application is it? A white icon with a little red & > yellow triangle or whatever on it? > > An application is merely a folder that has .app appended to the name. > So you can probably `cp -rvf ` this folder somewhere and then `mv > foldername.app folder`. From alex at underwares.org Tue May 27 12:15:50 2008 From: alex at underwares.org (Alexandre Gauthier) Date: Tue May 27 12:15:56 2008 Subject: [X-Unix] Was Folder, Became Application In-Reply-To: <328BA80B-335B-405B-AD43-35B6BDB29604@mac.com> References: <328BA80B-335B-405B-AD43-35B6BDB29604@mac.com> Message-ID: <822bac78077c9798e409028ac4143a56@valkyrie.underwares.org> On Tue, 27 May 2008 14:30:04 -0400, Jon Warms wrote: > Stroller- > > Thank you. I think I misstated the problem. I can change the > "application" back to a file, just by removing the extension. > But I can't open it. IOW, I can't restore the hierarchical folder > structure. > > For example, I copied the large file as you suggested, and > got another equally sized file. But when I tried to cd to the > new file, I got "Not a directory." That's what my problem is. > > And, of course, when I try to open the large file, Finder asks > me to choose an application. As I said in my first posting, I > can open the file in an editor (I used ed) and see the 30+ > megabytes, but I don't know how to make sense of it. > > I'm assuming the original folder structure is intact, but some > header data has been changed. The size of the large file is about > the same as my original iTunes Library was. (I didn't track > the exact size.) > > I just was hoping there was some header data I could remove that > would make the original folder structure reappear. Way back > when OS X disposed of the resource forks, maybe there was > something inserted in the header of an application file > to replace it. > > Wishful thinking? Unless I am really mistaken, .app "files" are not files, just folder with a bundle attribute, just like .pkg files. So if all you see is a file, and not a directory, I believe something even more screwed up occured. > > Jon > > > On May 27, 2008, at 1:29 PM, Stroller wrote: > >>> But I'd like to restore the clobbered folders. I used >>> ed to look at the .app file, but I don't know what >>> makes it an application and how to change that to >>> a folder type. >> >> What kind of Application is it? A white icon with a little red & >> yellow triangle or whatever on it? >> >> An application is merely a folder that has .app appended to the name. >> So you can probably `cp -rvf ` this folder somewhere and then `mv >> foldername.app folder`. > From macmonster at myrealbox.com Tue May 27 17:14:50 2008 From: macmonster at myrealbox.com (Stroller) Date: Tue May 27 17:14:59 2008 Subject: [X-Unix] How to REALLY kill Finder. In-Reply-To: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> References: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> Message-ID: <13E87617-87F6-4392-950A-6CDE900578FE@myrealbox.com> On 23 May 2008, at 20:49, Stroller wrote: > ... > If I look for the process using `ps` I see the process name in > brackets: > $ ps -wwwwwx | grep Finder > 5958 ?? E 0:00.00 (Finder) > $ > I presume the brackets indicate that Finder is behaving badly, but > `man ps` doesn't seem to explain exactly what they mean. Apparently > the "E" in the above line indicates that the process is trying to > exit. > > Anyway, I can't get any further using `kill -9 5958` or anything > else I've tried so far. I got an update to this on the Apple discussion forums, and I suspect the author has assessed the problem correctly: -------------------------------------------------------------- Strolls wrote: *Obviously I could sort this by rebooting my computer, but I really don't want to do that right now.* Can anyone suggest a way of *properly* killing this process so that Finder can restart? Hi, I think you might be stuck with a restart. I believe that when you get the process name in parentheses in the process listing, your process is hung waiting for something from the kernel. Of course, I can't find that information now, but I've seen it quite a bit in with Final Cut Pro. Something would happen to the SCSI RAID controller, then Final Cut Pro would hang or crash, but it wouldn't re-launch. A quick look at the running processes showed an entry for Final Cut, but with parentheses around it. It was unkillable, even with sudo, and a restart was all I could do. In some cases, normal shutdowns were also impossible, and I had no choice but to hold down the power switch to kill the machine. I'd usually give it 5 or 10 minutes just to be sure, though. But that could have been related to the SCSI controllers, too. Since networking and some of the file sharing stuff runs at the kernel level, it's possible that force-quitting the Finder caused a problem in the kernel that will require a restart to fix. charlie -------------------------------------------------------------- To view or respond to this message, visit To view the full topic, visit: I actually made the restart yesterday, because I needed to rummage around in some folders and stuff. I did indeed finally have to hold down the power switch in order to induce the restart. Stroller. From ecrist at secure-computing.net Tue May 27 17:18:24 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Tue May 27 17:19:07 2008 Subject: [X-Unix] How to REALLY kill Finder. In-Reply-To: <13E87617-87F6-4392-950A-6CDE900578FE@myrealbox.com> References: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> <13E87617-87F6-4392-950A-6CDE900578FE@myrealbox.com> Message-ID: <5D72BD0C-4978-4976-B830-A6094293FF28@secure-computing.net> On May 27, 2008, at 7:14 PM, Stroller wrote: > > On 23 May 2008, at 20:49, Stroller wrote: >> ... >> If I look for the process using `ps` I see the process name in >> brackets: >> $ ps -wwwwwx | grep Finder >> 5958 ?? E 0:00.00 (Finder) >> $ >> I presume the brackets indicate that Finder is behaving badly, but >> `man ps` doesn't seem to explain exactly what they mean. Apparently >> the "E" in the above line indicates that the process is trying to >> exit. >> >> Anyway, I can't get any further using `kill -9 5958` or anything >> else I've tried so far. > > I got an update to this on the Apple discussion forums, and I > suspect the author has assessed the problem correctly: > > -------------------------------------------------------------- > Strolls wrote: *Obviously I could sort this by rebooting my computer, > but I really don't want to do that right now.* Can anyone suggest > a way of *properly* killing this process so that Finder can restart? > > Hi, I think you might be stuck with a restart. I believe that when > you get the process name in parentheses in the process listing, > your process is hung waiting for something from the kernel. Of > course, I can't find that information now, but I've seen it quite > a bit in with Final Cut Pro. > > Something would happen to the SCSI RAID controller, then Final Cut > Pro would hang or crash, but it wouldn't re-launch. A quick look > at the running processes showed an entry for Final Cut, but with > parentheses around it. It was unkillable, even with sudo, and a > restart was all I could do. > > In some cases, normal shutdowns were also impossible, and I had no > choice but to hold down the power switch to kill the machine. I'd > usually give it 5 or 10 minutes just to be sure, though. But that > could have been related to the SCSI controllers, too. > > Since networking and some of the file sharing stuff runs at the > kernel level, it's possible that force-quitting the Finder caused > a problem in the kernel that will require a restart to fix. > Funny you bring this up, as I've heard rumors there are upcoming updates to the kernel addressing network file sharing and kernel hangs/ panics and various page faults. 10.5.3 is going to have something like 200+ fixes. Sorry I wasn't able to find you a better solution. ----- Eric F Crist Secure Computing Networks From macmonster at myrealbox.com Tue May 27 17:26:17 2008 From: macmonster at myrealbox.com (Stroller) Date: Tue May 27 17:26:30 2008 Subject: [X-Unix] How to REALLY kill Finder. In-Reply-To: <5D72BD0C-4978-4976-B830-A6094293FF28@secure-computing.net> References: <2D266F7F-57E3-460F-B601-3DCBD5189910@myrealbox.com> <13E87617-87F6-4392-950A-6CDE900578FE@myrealbox.com> <5D72BD0C-4978-4976-B830-A6094293FF28@secure-computing.net> Message-ID: <7161732E-EEDB-42FA-9729-B30075D2FBDA@myrealbox.com> On 28 May 2008, at 01:18, Eric F Crist wrote: > > Funny you bring this up, as I've heard rumors there are upcoming > updates to the kernel addressing network file sharing and kernel > hangs/panics and various page faults. 10.5.3 is going to have > something like 200+ fixes. Sorry I wasn't able to find you a > better solution. I really think now the problem was because I used the USB CFcard adaptor - I have problems with this and with another SDcard adaptor on both my Macs. I remember that, after the copying process hung, I pulled it out and it appeared to work fine on a Linux box, but when I put the card in my PS3 it complained of file corruption. I formatted the card in my camera, recopied the file to the CFcard (using the same USB adaptor) on my Linux box and the file was perfectly viewable on the games console. Like I say, I find these USB "mass storage" adaptors flakey on two of my Macs, so I do wonder if this is a problem with Apple's kernel drivers. Stroller. From macmonster at myrealbox.com Tue May 27 17:27:42 2008 From: macmonster at myrealbox.com (Stroller) Date: Tue May 27 17:28:01 2008 Subject: [X-Unix] Was Folder, Became Application In-Reply-To: <328BA80B-335B-405B-AD43-35B6BDB29604@mac.com> References: <20080527172934.736CC2509922@listserver.themacintoshguy.com> <328BA80B-335B-405B-AD43-35B6BDB29604@mac.com> Message-ID: Hi John, This list is for using the COMMAND LINE on OS X. The Finder is a graphical application, so it's not strictly relevant to this list. Having said that, I think you can fix your Finder / iTunes problem, using the command line. For instance, when I said: Open Terminal and type `ls ` (with the space, no quotes) and drag and drop [this messed up folder] on to it. Press enter. What does it say? Paste the results back to us. I wasn't just saying that for my own entertainment. When I say: So you can probably `cp -rvf ` this folder somewhere and then `mv foldername.app folder`. I don't mean "copy it with the Finder", I mean "type some commands into the Terminal window". I didn't specify which ones at this stage, because first you'd need to get back to use with the results I already asked for. If you're confused by what I mean by "the Terminal" then you can find this program in Application > Utilities. I think your problem can be fixed in under a minute using the command line. I could be wrong in that, but I have no idea until you give more information. But you might want to delay trying to doing so for an hour or two, and work your way through these tutorials first: Those tutorials should give you an idea of what I'm talking about when I use words like `ls` and `cp`, and my words: Open Terminal and type `ls ` (with the space, no quotes) and drag and drop [this messed up folder] on to it. Press enter. What does it say? Paste the results back to us. should then make sense to you. When you come back to us, you need to post back something that looks vaguely like this: Stroller's Mac ~ $ ls Desktop Library Music Public foo Documents Movies Pictures Sites foo.txt Stroller's Mac ~ $ ls -l Music/ total 0 drwxr-xr-x 9 stroller stroller 306 Dec 29 08:18 Music Videos drwxr-xr-x 8 stroller stroller 272 May 25 03:02 iTunes Stroller's Mac ~ $ ls -l Music/iTunes/ total 22656 drwxr-xr-x 3 stroller stroller 102 Sep 30 2006 Album Artwork drwxr-xr-x 6 stroller stroller 204 Jan 18 12:13 Previous iTunes Libraries -rw-r--r-- 1 stroller stroller 6198712 May 25 03:02 iTunes Library drwxr-xr-x 327 stroller stroller 11118 Mar 30 13:04 iTunes Music -rw-r--r-- 1 stroller stroller 5396002 May 25 03:02 iTunes Music Library.xml Stroller's Mac ~ $ Posting back output from the terminal is standard operational procedure when asking for help on Unix-orientated mailing lists. It helps us understand FAR better than your description what is going on and what you're doing. You need to include the command you used, as well as the output - as I've copied from `ls -l Music/iTunes/` above, all through the output that that command returns, and then the next prompt ("Stroller's Mac ~ $"). This is "one standard unit" of the command-line copy-and-paste that you should be providing. Cheers, Stroller. On 27 May 2008, at 19:30, Jon Warms wrote: > Stroller- > > Thank you. I think I misstated the problem. I can change the > "application" back to a file, just by removing the extension. > But I can't open it. IOW, I can't restore the hierarchical folder > structure. > > For example, I copied the large file as you suggested, and > got another equally sized file. But when I tried to cd to the > new file, I got "Not a directory." That's what my problem is. > > And, of course, when I try to open the large file, Finder asks > me to choose an application. As I said in my first posting, I > can open the file in an editor (I used ed) and see the 30+ > megabytes, but I don't know how to make sense of it. > > I'm assuming the original folder structure is intact, but some > header data has been changed. The size of the large file is about > the same as my original iTunes Library was. (I didn't track > the exact size.) > > I just was hoping there was some header data I could remove that > would make the original folder structure reappear. Way back > when OS X disposed of the resource forks, maybe there was > something inserted in the header of an application file > to replace it. > > Wishful thinking? > > Jon > From cutolo at unina.it Wed May 28 08:17:33 2008 From: cutolo at unina.it (Giovanni Cutolo) Date: Wed May 28 08:18:53 2008 Subject: [X-Unix] compiling php In-Reply-To: <7430166ddeae27c730bc21c35af4779d@valkyrie.underwares.org> References: <51FD5E69-E6B0-4CDF-AD8F-E7B898673672@secure-computing.net> <7430166ddeae27c730bc21c35af4779d@valkyrie.underwares.org> Message-ID: <93494D31-953D-4454-8B9B-85DCA58405A2@unina.it> Eric and Alexander, thank you both, I actually had not followed the phpize / make install procedure to compile the module; thus it was in a wrong location, and also my definition of extension_dir in php.ini was incorrect (now I have commented out it, so it is back that default, which is the strange-looking /usr/lib/php/extensions/no-debug-non-zts-20060613, where make installe placed the module). The trouble is: it does still not work, the module is still not loaded (yes, after restarting apache, and my php.ini has the line extension=pgsql.so ). Can it be a permission problem? Thanks again. Giovanni Il giorno 27/mag/08, alle ore 19:29, Alexandre Gauthier ha scritto: > > > On Tue, 27 May 2008 10:57:21 -0500, Eric F Crist > wrote: >> On May 27, 2008, at 6:12 AM, Eric F Crist wrote: >> >>> The module is ignored because you need to add it to the PHP >>> Extensions config file. Add it there and I'm sure you'll be fine. >>> >>> -----Original Message----- >>> From: Giovanni Cutolo >>> >>> Hi all, >>> >>> I am trying to compile php 5.2.6 on my MacBook (Leopard), since I >>> need >>> the pgsql module that is not in the php build shipped by Apple >>> (why?, >>> if I may ask). So I try with >>> >> ... >> >>> that is: compiling the module itself (using the source of php 5.2.5) >>> and then moving it to the appropriate (?) location in the pre- >>> existing >>> installation of php. No avail: the module is simply ignored. >> >> >> To elaborate from my earlier email, I found this is /private/etc/ >> php.ini.default, about 50% of the way down: >> > ----- 8<-snip--snip-8<------ >> That file, in it's entirety, is a good read for configuring PHP. >> You'll need to make sure your module gets loaded in the correct >> location, as well as adding the appropriate extension=foo line. >> > > To further complete what Eric said, I'd like to mention that you > need to > comment out the line defining extension_dir as "./" in php.ini, by > adding a > semicolon in front of it. > > Then, simply add the name of the module which I assume you compiled by > running phpize in the module directory, and then installed with make > install. (most likely pgsql.o) > > You may then restart apache running 'sudo apachectl restart'. > > I just added GD2 support to the default Apple PHP install, and it > worked > fine. > > 'phpize' should work out the details for you, such as the module > location. > > Hope this help. > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From andrew at trevorrow.com Wed May 28 16:41:53 2008 From: andrew at trevorrow.com (Andrew Trevorrow) Date: Wed May 28 16:42:53 2008 Subject: [X-Unix] Re: Was Folder, Became Application In-Reply-To: <20080528151908.339742544C78@listserver.themacintoshguy.com> References: <20080528151908.339742544C78@listserver.themacintoshguy.com> Message-ID: Jon Warms wrote: > Thank you. I think I misstated the problem. I can change the > "application" back to a file, just by removing the extension. > But I can't open it. IOW, I can't restore the hierarchical folder > structure. Ctrl-click on the .app "file" and you should see a pop-up menu. Select "Show Package Contents" and you should get a new Finder window showing what's inside. Just drag everything out into a new empty folder and your old hierarchy should be restored. Andrew