Solved

Lynx in a crontab

Posted on 2000-05-10
2
610 Views
Last Modified: 2011-10-03
I am trying to run the lynx browser from crontab.  The crontab is running a script which just runs
lynx -dump http://mywebpage > file
When I manually run the script, it works fine.  When the crontab runs the script, it gives this error message:

Your terminal lacks the ability to clear the screen or position the cursor.

This makes sense because lynx doesn't have a terminal when run by the crontab.  I have tried every applicable option listed in the man page and I still get that error message.  Can anyone help me? Thanks.
0
Comment
Question by:dougw051000
2 Comments
 
LVL 1

Accepted Solution

by:
roald earned 50 total points
ID: 2797574
Maybe you could try setting the TERM-variable in the crontab-file, like this:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
TERM=vt100

0
 

Author Comment

by:dougw051000
ID: 2797681
I am impressed with the speed at which my question was answered.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
su - oracle could not open session 6 95
Error Message during CentOS 7 Minimal Install 3 58
ifconfig 4 69
awk file 6 78
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question