Cron run as account user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • avenuex
    Member
    • Apr 2004
    • 51

    #1

    Cron run as account user

    Hi Everyone,

    I tried setting up a cron job to run this new (email posting to moveabletype) plugin called meow. It works great running it command line, however

    The script requires libraries that I don't think dathorn has setup for perl. so I installed the library files localling in my cgi-bin folder, and when I run the cgi script via command line, all works great.

    However, when I setup the cron to run it, it tries to run it as either nobody or root, and does not pick up those library files in the cgi-bin.

    Is there anyway to run cron as my own user? that or somehow add the library files to the @inc path for duration of that run?

    Thanks in advance,
    Warren.
  • avenuex
    Member
    • Apr 2004
    • 51

    #2
    Nevermind

    Nevermind,

    I created a shell script that ran it from the right directory and called the perl script. all looks like its working fine.

    thanks anyway

    Comment

    Working...