in reply to Re^2: MIME::Lite and attachments
in thread MIME::Lite and attachments

Ok, what does perl -e' print -r "/usr/home/account/files/test.gif"' do if you run it as the user your script runs at?

Replies are listed 'Best First'.
Re^4: MIME::Lite and attachments
by bradcathey (Prior) on May 25, 2007 at 07:11 UTC

    Well, it didn't like the -e' or the -r, but

    perl -e print "/usr/home/account/files/test.gif"

    returned nothing.

    Update: Per shmem's fine correction, a "1" is returned. I assume that is "true" and that my path is fine.


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
      That returns nothing because you're not quoting your -e script... so your -e script consists of an empty print statement, and the filename is an argument to that script. Try
      perl -e 'print -r "/usr/home/account/files/test.gif"'

      That should print a '1' just before the next shell prompt.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}