On Tue, Sep 30, 2008, Rudi Ahlers wrote:
Hi,
I'm running a crontjob on CentOS 5.2 server, which then connects to a webpage to run some stuff. It has to run this way, since the webpage is on a Windows server, and the Windows scheduled tasks doesn't work as well.
It seems like the cronjob is working fine, except that the email output worries me a bit.
This is what I get on email,
...
So, the question is, how do I set the terminal type for a cronjob?
There are many ways to do this depending on the type of program executed by the cron job (e.g. shell script, perl, python, or compiled program). One way that will always work is to write a wrapper script that execs the real script, something like:
#!/bin/sh # set a terminal type that makes your application happy TERM=dumb export TERM # set any other environment variables as necessary exec /path/to/real/script
Bill