iwanthome has asked for the wisdom of the Perl Monks concerning the following question:

I have a cron job and want to use my own module,So how to do that ? I can't use  "use lib xx" because IĦĦdon't know which is the full path of cron job before it is installed. I know I can get the path infomation of cron job,then thanks!

20040329 Edit by Corion: Fixed CODE tag

Replies are listed 'Best First'.
Re: newbie quesiton:how to use my own module in cron job?
by Happy-the-monk (Canon) on Mar 29, 2004 at 08:58 UTC

    You should use "use lib" anyway. Without a module, you have a hard time locating a module on a system you know nothing of.

    Do ask somebody who knows about the particular system!

    Edit:
    Or install the module yourself, then you know it's path: see also Where to install my own perl modules?

Re: newbie quesiton:how to use my own module in cron job?
by diotalevi (Canon) on Mar 29, 2004 at 11:13 UTC

      That seems to be a different node than what you wanted diotalevi. Can you update with the correct one? In the mean time I guess I can do the SuperSearch thing. Thanks.

      Paulster2

      UPDATE: Never mind, I'm out to lunch and it's only 9am. Go figure.