Solved

Lynx in a crontab

Posted on 2000-05-10
2
605 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 46
How to clone solaris 10 machine 33 114
Install Predefined Certificate on Ubunto 4 17
Exchange 2010 unable to mount DB due to corruption 11 70
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now