?
Solved

Lynx in a crontab

Posted on 2000-05-10
2
Medium Priority
?
614 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
roald earned 200 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

764 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