LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 08-17-2016, 11:30 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Could you host on GIT a simple plain text file with headlines / news?


Hi,

As Frank said the plague is that today websites are stuffed with videos, java, ads, .... well, awful for mobiles and getting the desired info.

Simple thing does not exist today. So, let's make it!

Could someone host on git a simple txt file with updating it daily over crontab?

Nothing complicated, for instance $HOME/uploadnews.sh :

take a nice webpage maybe better than CNN.
Code:
#/bin/sh
cd 
mkdir tmp
cd tmp
date >  plaintext-news.txt
elinks -dump-width 80 -force-html www.cnn.com  >> plaintext-news.txt
# fput / git... to upload on git,ftp,...
echo FINITO
Update this script the way you want.

place this into crontab (with crontab -e ):
Code:
30 8 * * * screen -d -m  bash $HOME/uploadnews.sh

Many thanks in advance

Last edited by Xeratul; 08-18-2016 at 12:07 AM.
 
Old 08-24-2016, 02:15 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
I didn't know he was internet savvy.

https://www.rottentomatoes.com/m/frank_2014/
 
Old 08-27-2016, 06:12 AM   #3
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
This post motivated me to 'learn' [sign up for] git!
https://guides.github.com/activities/hello-world
( from https://github.com/new )
Cool! Thanks!
 
Old 08-27-2016, 11:35 AM   #4
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
Why git?
 
Old 08-27-2016, 11:40 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Xeratul:
Do you need hosting for this?
I'm confused again still...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Website for News / Headlines in Plain Text? Xeratul General 6 07-25-2016 09:51 PM
[SOLVED] How to export just source/destination field of pcap file into a plain text file kikilinux Linux - Networking 5 11-27-2014 07:13 AM
[SOLVED] Removing line terminators from a plain text file. stf92 Linux - Software 11 07-31-2010 07:05 AM
.ram file shows as text/plain biosnacky Linux - Newbie 8 01-07-2007 08:21 PM
not a plain text file wazza4610 Linux - Newbie 1 11-22-2005 04:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration