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, Your Terminal type is unknown! Enter a terminal type: [vt100] TERMINAL TYPE IS SET TO vt100 (B)0[1;24r[?7h[?1h=[H[J[22B[J[H[K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [0;7mGetting http://billing/pipe/pop.php [22;53H [J[1A[0;7mLooking up billing [22;36H [J[1A[0;7mMaking HTTP connection to billing [J[1A[0;7mSending HTTP request. [22;22H [J[1A[0;7mHTTP request sent; waiting for response. [J [24;1H [?1l> So, the question is, how do I set the terminal type for a cronjob? -- Kind Regards Rudi Ahlers
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 -- INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 The trade of governing has always been monopolized by the most ignorant and the most rascally individuals of mankind. -- Thomas Paine
Rudi Ahlers wrote on Tue, 30 Sep 2008 17:44:02 +0200:> It has to run this way, since the webpage > is on a Windows server, and the Windows scheduled tasks doesn't work > as well.I'd rather look there why it doesn't work for you. Scheduled tasks works just fine on my Windows servers. I'm not getting an email from them, if that is what you want, though. Btw, you can also install cron on Windows! Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
Seemingly Similar Threads
- Cronjob / .rb help clearing session table (new to cronjobs)
- Exists some problem with cronjobs under CentOS7 (Partially solved)
- Exists some problem with cronjobs under CentOS7
- Exists some problem with cronjobs under CentOS7
- Exists some problem with cronjobs under CentOS7