Link to home
Create AccountLog in
PHP

PHP

--

Questions

--

Followers

Top Experts

Avatar of sabecs
sabecs

Cron job error - Lynx file "/etc/lynx.lss" is not available.
Hi,
The following cron job in cPanel no longer works and I receive error below?


lynx --dump http://www.mywebsite.com/components/com_catalogue/cron/adminapprove.php > /dev/null

Lynx file "/etc/lynx.lss" is not available.

Any ideas on how to fix?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of sabecssabecs

ASKER

Also, can I run the script using curl or wget instead, if so what command should I use?

Avatar of MazdajaiMazdajai🇺🇸

Try -

touch /usr/local/etc/lynx.lss 
touch /etc/lynx.lss

Open in new window


Avatar of sabecssabecs

ASKER

Thanks Mazdajai but I don't have access to issue those command.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of sabecssabecs

ASKER

I have now setup the cron job to use curl instead, see below.

/usr/bin/curl http://www.mywebsite.com/components/com_catalogue/cron/enquiryprocess.php | sed "s/^/$(date)/" >> /home/mywebsit/public_html/components/com_catalogue/cron/cron_log.txt

cron_log.txt contents --> Fri Jul  5 23:12:02 EST 2013There are no new e-mailsFri Jul  5 23:16:01 EST 2013There are no new e-mails

How can I alter this to add "Enquiry Process" after the date and also create a newline with each append?

Avatar of MazdajaiMazdajai🇺🇸

Try -

/usr/bin/curl http://www.mywebsite.com/components/com_catalogue/cron/enquiryprocess.php | sed "s/^/$(date)\n/" >> /home/mywebsit/public_html/components/com_catalogue/cron/cron_log.txt 

Open in new window


Avatar of sabecssabecs

ASKER

Thanks  Mazdajai, that works well but how can I get a new line before the date and also add "Enquiry Process" after the date?

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of MazdajaiMazdajai🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of sabecssabecs

ASKER

Thanks Mazdajai, that's perfect.
PHP

PHP

--

Questions

--

Followers

Top Experts

PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.