aspose file tools*
The moose likes Linux / UNIX and the fly likes Crontab & Procmail problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Crontab & Procmail problem" Watch "Crontab & Procmail problem" New topic

Crontab & Procmail problem

Prajakti Joshi

Joined: May 29, 2002
Posts: 2
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
Can anyone help me out on this?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665

Look in and see if it's making any assumptions about what the current working directory may be (relative paths).

Customer surveys are for companies who didn't pay proper attention to begin with.
Prajakti Joshi

Joined: May 29, 2002
Posts: 2
Actually I'm calling a script from, 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.
I agree. Here's the link:
subject: Crontab & Procmail problem
Similar Threads
how to call a simple perl script in procmail.
Kron jobs
linux cron task to invoke java class
creating a cron file