Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Crontab & Procmail problem

 
Prajakti Joshi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to run a perl script through the procmail in a crontab. But I'm getting an error "Error writing to file", when the cron runs. However, when I run the same script from command line, it works fine, without any errors.
Following is the procmailrc file :

I'm getting the error when it tries to run ParseMail.pl.
Can anyone help me out on this?
Thanks,
Prajakti.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18218
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look in parsemail.pl and see if it's making any assumptions about what the current working directory may be (relative paths).
 
Prajakti Joshi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Actually I'm calling a script from ParseMail.pl, which in turn uses Metamail along with "expect". Following is the code in the script :

When it's run manually, the script works fine, but when set in a cron, it doesn't seem to work.
Thanks,
prajakti.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic