in reply to "safe" perl cron environment?

You could encrypt your program with "gpg", and then run it using
gpg [some-options] | perl

(gpg will ask for a password)

Replies are listed 'Best First'.
Re: Re: "safe" perl cron environment?
by vek (Prior) on Dec 03, 2002 at 15:28 UTC
    Nice idea fglock. Your solution will work great from the command line. The only problem I foresee is that you're going to run into trouble if the Perl prog is ran as a cron job. You still have to figure out a way to give gpg the password without anyone seeing what it is. If the password is in the "driver" script or a config file root can still read it. I was thinking you could get around this by using a config MySQL table to store the password. You could query the table from your driver script. Only problem with that is you still need to connect to the DB in the first place and then you run into the problem of hiding that login & password. Bugger.

    -- vek --