Solved

Lynx in a crontab

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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 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.:
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…

757 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

20 Experts available now in Live!

Get 1:1 Help Now