Recent content by mosx86

  1. M

    pconnect()?

    PHP question... I've inherited a MAMP (mac/apache/mysql/php) on which PHP is configured to allow persistent connections. If there are scripts using pconnect() and I disable persistent connections in the php.ini file will this break them? Or should I limit the number of allowed pconnects...
  2. M

    Force ntp-based update of system clock in shell

    Launchd is being used to launch ntpd. But it's actually calling /usr/libexec/ntpd-wrapper which is just a shell script to launch ntpd with certain parameters. What's in your ntpd.conf file and what parameters are being flagged via ntpd-wrapper?
  3. M

    Force ntp-based update of system clock in shell

    Have you tried HUP'ing ntpd? something like... sudo killall -HUP ntpd
  4. M

    bash shell script arrays?

    Pestered a *nix guru of mine (owe him a bottle of single malt scotch) and it turns out I had to set IFS to newline. Here is a working script: #!/bin/sh IFS=$'\n' thearray=(`defaults read com.apple.dock persistent-apps | grep CFURLString\" | awk...
  5. M

    bash shell script arrays?

    Unfortunately single quotes produce the same results. I'm beginning to think its more an issue with redirecting the output of the commands into the array. I've even tried writing the defaults ... ... command out to a file and catting the file into the array with no luck. I was hoping to do...
  6. M

    bash shell script arrays?

    The output of: defaults read com.apple.dock persistent-apps | grep CFURLString | grep -v CFURLStringType | awk '{print $3, $4}' | sed 's/;//' | sed 's/[ \t]*$//' | sed '/\ /s/\ /\\\ /g' | tr '\n' ' ' is: "/Applications/Safari.app/" "/Applications/Mail.app/" "/Applications/Server/Server\...
  7. M

    bash shell script arrays?

    I'm working on a shell script (#!/bin/sh) that uses defaults to read the com.apple.dock plist and gather the persistent-apps and persistent-others into arrays, however because some of the Applications have spaces in them, they are entered as separate entities in the array. I've tried the...
  8. M

    cli the OS version?

    So there are a plethora of ways all better than what I was doing: system_profiler -xml SPSoftwareDataType | awk '/os_version/{getline;print $4}' How to get the version of Mac OS X from the CLI It seems the less complicated way is: sw_vers -productVersion or defaults read...
  9. M

    cli the OS version?

    I'm working on a shell script and need to be able to pull the OS version and the version of Safari in order to do various things... I can get Safari's version number from the /Applications/Safari.app/Contents/version.plist file and with some creative sed should be able to finagle just the...
  10. M

    Strange Mounting Issue

    I poked around a little further and it appears that I have about 15GBs left on the drive. Do you think this can explain the wonky behavior?
  11. M

    Strange Mounting Issue

    Well, I just got home and boot up my Mac Mini to discover a strange mounting issue with my secondary drive. In a nutshell, here is my setup: MacMini (ppc) w/ 80GB system drive. LaCie external firewire drive (250 GB, 1 partition) My admin account is on the system drive, but my main user...
  12. M

    .Mac Problems

    I don't use .mac, but do they require SMTP authentication?
  13. M

    New Wireless Hack?

    This was posted over at Ars. Essentially, two _hackers_ have figured out how to exploit wireless drivers on a variety of OS. The article targets MOSX (for pure spectacle IMHO), but didn't answer a question that maybe some here might be able to answer. From my reading of the article it...
  14. M

    Lost desktop

    Turning off the extension occurs when you hold down the left shift button when the machine boots up. Once they're off. They're off and you'll have to reboot to get them back. You can try restarting and holding down the space bar after the chime. Keep it depressed until the extensions...
  15. M

    Lost desktop

    NewsMD, I think your problem is a little different. Can you describe the issue in more detail? Since this is an older machine, running MOS9, I wonder if maybe your desktop file has corrupted (this can cause files to disappear from the drive). You could try to rebuild it by holding down the...
Back
Top