Solved

Lynx in a crontab

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

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…
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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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