Search results

  1. J

    cgi script

    hannibal, a common error when writing CGI scripts for the web is to forget to print the header...and it must be the first thing the program outputs. print "Content-type: text/html\n\n"; there are modules that are better suited for printing headers, but the previous line will suffice.
  2. J

    mysql query

    mysqldump old.database > some.text.file mysql new.database < some.text.file there are many flags that you can throw to mysqldump so that it only dumps table creation info or only dumps data and not table creation info... read the man page.
  3. J

    Register Here

    ...Me
  4. J

    Hacking Darwin to remove .DS_Store

    yes, here is a simple shell script called rmdot that I placed in every users $PATH on my system. each user only has to type rmdot or have a cron job execute rmdot and his/her home directory will be rid of any .DS_Store, .Trashes or ._* files... find ~ -name '\._*' -exec rm {} \; find ~...
  5. J

    GotMail Perl script

    then you probably need to, and try the previous instructions again.
  6. J

    GotMail Perl script

    i don't know what to say. i'm using OS X 10.1.5 with the default installation of Perl, and everything worked for me. i'm not familiar with Jaguar, but i don't think it would ship with a less complete version of Perl. did you install the Developer's Tools?
  7. J

    GotMail Perl script

    the default install of perl does not contain all available modules. you need to download URI::Escape yourself. in your terminal, as superuser, type: perl -MCPAN -e shell you will be prompted to answer a few questions. hitting enter picks the default answer, and this should be fine...
  8. J

    GotMail Perl script

    the perl script is trying to use a module called URI::Escape which doesn't exist in your perl include path (the array @INC contains all the directories in the include path). you probably need to install this module...
  9. J

    Mac boots into Darwin....help!!!

    i was under the impression that you had already tried rebooting and kept getting forced into the CLI. good luck with the deadline.
  10. J

    Mac boots into Darwin....help!!!

    so, is there a way to boot to multi-user CLI mode and bypass the GUI? what exact function does SystemStarter serve? the name sounds obvious, but there was no man page for specific details...
  11. J

    Mac boots into Darwin....help!!!

    no problems here, but if you read above, Giblad appears to be in a bind...
  12. J

    Mac boots into Darwin....help!!!

    any ideas how it does control run-levels or whatever the OS X equivalent is...?
  13. J

    Mac boots into Darwin....help!!!

    i've never had to deal with this on my Mac, so i'm not sure if run-levels work the same on Macs as in Linux; however, in every Linux distro i've used there is a file called /etc/inittab where you can set the default run-level for your box i.e. the run-level the machine boots into... i'm at...
  14. J

    ftp can't change root in Jag

    ---> What exactly is Apple trying to tell us? maybe they're subtly trying to tell you to use ssh and sftp, because these two services are much more secure and provide you with the same functionality as ftp, only a little slower. i cringe at the thought of using ftp with an administrative...
  15. J

    chmod -R vs. spaces in filenames

    have you tried: chmod -R 644 *.mp3
  16. J

    bash rules, tcsh lacks... except for this...

    i'm still using 10.1.5, so i don't have bash. i tested it using the generic "sh", and everything worked fine. i've never used CVS, so i'm not familiar with the commands. i did read in the man page that the path specified with the -d flag overrides the value of the $CVSROOT environment...
  17. J

    bash rules, tcsh lacks... except for this...

    this is just a guess. is it possible that you need to quote the variable when using it within a command? EDIT: using the bash shell, i just created a new user in this manner: NEWUSER='cleetus' NEWDIR='/tmp' useradd -d $NEWDIR $NEWUSER the newly created user was cleetus with the home...
  18. J

    Perl 5.8.0 / Sendmail

    apparently, you don't have an apache group on your system. what i showed you was only an example. you need to change the group ownership of your script to whatever group your apache server runs as... run this command: less path/to/httpd.conf | grep Group you should see one line that...
  19. J

    Perl 5.8.0 / Sendmail

    oh come on...perl's great. i definitely prefer PHP for web development, but for any and all sysadmin/file system needs, Perl is where it's at! as far as your permission issue is concerned, the fix is a simple one. apache executes Perl scripts with the same UID that runs the daemon (most...
  20. J

    php problem

    the php.ini config file is not automatically installed when you compile and install php from source. you have to copy php.ini-dist or php.ini-recommended from the root of the source directory to the location that the binary expects to find the file (/usr/local/lib is default, but i prefer it in...
Back
Top