Search results

  1. B

    Bouncing Email?

    One way would be with procmail (installed by default with OS X, man pages with BSD package however) and a set of procmail scripts called spambouncer .
  2. B

    How to launch a script on startup?

    Your supposition is correct; it is basically like an include, variables become available to the current script, any commands in that referenced script are run, etc. You can do this in Bourne, use test, which should also be the program known as [ (try a whereis [ sometime). This should work in...
  3. B

    Dumb perl question

    Simple way: system( "clear" );. Otherwise, go to www.cpan.org and see if any of the Term modules have something like this; I'm guessing that'd be where this capability would lie.
  4. B

    How to launch a script on startup?

    Note that you can remount your disk in single-user to make it writable; simply run /sbin/mount -uw / to do this (it should also print this out when you boot single-user).
  5. B

    Sed and Regex

    I'm a big fan of regex power, but that just looks like you sneezed while your hands were on the keyboard... Maybe that's what took you so long. But, hey, since it's perl, TMTOWTDI...
  6. B

    Sed and Regex

    Personally, I prefer to move away from sed when the regex gets really long; if there's no problem with it, use perl. This would look like: #!/usr/bin/perl while( <> ) { /^(.+)\t(.+)\t(.+)\t(.+)\t(.+)\t(.+)$/; print "RENDERER*TREE*\$cube1*TRANSFORMATION*POSITION SET $1 $2...
  7. B

    Configuring Sendmail (m4 problems)

    Take a really, really close look at the first quote to make sure it is the backwards one; I was able to reproduce that exact error message when I made the line FEATURE('no_default_msa') instead of FEATURE(`no_default_msa') If you do have the correct quote, the only other...
  8. B

    Configuring Sendmail (m4 problems)

    That's odd, I just made that same change and m4 ran without complaint. The interesting thing is the error message, it quotes the no_default_msa part of the filename: ../feature/'no_default_msa'.m4. Does your mc file look like the one I've attached (renamed to a .txt since vBulletin really...
  9. B

    Shell script to empty trash? Applescript maybe?

    What does the output of ls -laF look like (this'll append certain characters to the end of file/dir names to represent their type). Let's see if there's anything weird after the dot in there. Also, when was the last time you checked your disk (via fsck or Disk First Aid)?
  10. B

    Help!!!......

    A couple of directories to check after many crashes are ~/Library/Logs where CrashReporter puts the logs of crashes, and /private/cores where core files may end up. You might also want to check /private/var/tmp and see if anything there is overly large (there will be files starting with...
  11. B

    Internet Explorer will not down load anything

    Be sure, if you're blowing away IE preferences, to get them all (here's what I see): ~/Library/Preferences/com.microsoft.explorer.plist ~/Library/Preferences/Explorer/* ~/Library/Caches/MS Internet Cache/* Anyone know of others?
  12. B

    ssh -x and XForwarding into OS X from a Linux Box

    The only way I've seen to make this work is to build your own OpenSSH set and use that as the sshd; it calls xauth properly and doesn't crash... But then you either install it in a non-system location (what I've done) and accept that you can't use System Preferences to set it, or install in...
  13. B

    lookupd: DNSAgent: timeout -- lets figure this out

    Well, I set the timeout for DNSAgent to 15, thinking it was in seconds; then I saw it timeout three times (the default for retries, then it switches to another server) within four seconds... Okay, so then I figured it must be in tenths-of-a-second, so I tried 150, and now it appears to...
  14. B

    lookupd: DNSAgent: timeout -- lets figure this out

    I've always ignored this myself; it seems, from what I've seen, lookupd is simply impatient. From log entries in /var/log/netinfo.log, the timeout seems to be five seconds. This timeout is controlled by much more than just your local DNS server (mine are on my own machines, so there should...
  15. B

    Man Errors...

    Some possibilities: do you have a full disk? If not, can you write to /tmp? When man processes a page, it sends some temporary stuff to /tmp, so that may explain it.
  16. B

    How to know which cat ate your drugs...

    Looks like two of them to me; the one on the left is obviously hallucinating, while the obvious drug user is doing a pretty serious Gene Simmons impersonation...
  17. B

    [HOWTO] - Setup a chroot jail for your FTP users (10.0-10.1.x only)

    There are several, depending on circumstance. /etc/ftpwelcome is printed to all connections prior to asking for username/password. /etc/ftpmotd is printed after a successful login by a user who isn't in /etc/ftpchroot. ~/etc/ftpmotd is printed after a successful login by a user who is...
  18. B

    How to extract tarballs with long filenames?

    Try gnutar, might be something standard tar doesn't like, gnutar xvf featherand.tar see if it extracts then.
Back
Top