Search results

  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...
  16. M

    Lost desktop

    Are you using FileVault on this system? I haven't had much experience with that feature, but it sounds like you managed to somehow delete your desktop folder when you answered "yes." Also, can you be more specific by what you mean about missing "programs?" Where are they missing from?
  17. M

    unbelievable file permissions!!!

    What are the permissions of the files? What are the permissions on the directory you're moving them to? To get the permissions, just open terminal, type ls -alF add a space and then drag the folder that contains the files into terminal. It should add the path for you. Just hit return and...
  18. M

    Trouble mounting DVD-Rs

    I've not tried those disk manufacturers, but I've had nothing but trouble with Memorex DVD-Rs.
  19. M

    Installing Windows XP on MacBook Pro

    We saw this problem. It was because we didn't install a version of windows with SP2. Apple's drivers installer won't work correctly unless SP2 is already installed.
  20. M

    Trouble mounting DVD-Rs

    What brand of DVD-R are you using?
Back
Top