Search results

  1. N

    H2 stop and restart an app from cron?

    Find out where your application puts the pid file (something like localhost.pid). Most applications put it in /var or in /usr/local/app/var. Check the config file for your app. In the cron job, do a kill -9 `cat pidfilenamehere` Good Luck, __nether
  2. N

    Equivalent of /proc/net/dev

    Like I said, depends on what you want to do ... take a look at netstat -s. This gives stats per protocol. Do a man netstat for a full explanaition. It may not be what you are looking for. Something else you might want to use is snort and run the logs through a perl counter. __nether
  3. N

    Silly malloc.h problem

    Looks like http://Fruitz-of-Dojo.de ported this library over. The problem becomes install location if you are using fink ... if you are using their /sw/.... layout (which is a huge reason for me not to use fink because that causes more problems than it solves), then you will need to change...
  4. N

    Apache, Perl, CGI scripts

    First: I think you have apache going, but jus to make sure, does test-cgi and printenv work? http://localhost/cgi-bin/test-cgi and http://localhost/cgi-bin/printenv ... there might be some config issues, doubtful if you have the stock apache running. If apache is not starting, try starting it...
  5. N

    how to build a shared object in OSX

    Hey missed some of the answers. Answer 1: It depends on your application :) ... What do you want to do with it? Should it be portable? If so, it should be a unix style shared library. If it's just for OS X, then a framework will be better. Answer 2: See my post above. In addition...
  6. N

    how to build a shared object in OSX

    Head over to http://gnu-darwin.sourceforge.net/porting.html ... they provide tips for porting programs over to darwin. One of the tips is how to create dummy libraries for those you are missing ... It doesn't cover shared libraries, but there's enough there to get you started and point you...
  7. N

    Equivalent of /proc/net/dev

    are you looking for realtime display? If the need isn't too high, how about using netstat? __nether
  8. N

    MySQL at startup

    It looks like your directory permissions are not set correctly. mysqld is trying to create the process id file ... you will find that directory as /usr/local/mysql/data. cd into /usr/local/mysql ... do an ls -ld data ... it should come up with: drwxr-w--- as the permissions. I would...
  9. N

    Tape backup

    There are many reasons not to do this: First, your tape heads are fragile compared to a firewire hard drive. You will wear out the heads very quickly. Second, the error correction is very high, you might garble your data. However, I'm not one to stop anyone from doing anthing foolish...
Back
Top