in reply to pipes don't work from cron

My first guess would be to check that the relative paths are correct for the current working directory when run under cron (i.e. if bin/retention_by_product.pl lives somewhere other than under $HOME you might have problems).

Replies are listed 'Best First'.
Re^2: pipes don't work from cron
by vman123 (Initiate) on Feb 13, 2006 at 00:54 UTC
    i am an idiot... that was exactly it. just the paths. thanks

      The Module FindBin gives you a variable called $FindBin::Bin which points to the path where the executed perlscript is; if you need a relative path like my $file = "./files/file.txt";, you can easily write instead:

      use FindBin; my $file = "$FindBin::Bin/files/file.txt";

      Best regards,
      perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"