LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2012, 12:51 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
HTML: post online/offline in html code?


Hi,

I am intending to say that I am available on my site, on a given ftp provider. My pages are only html based, and no php is used.

Would you have any hints / ideas how to upload or make my site know that I am online/offline?

Not using wput or ftp

thx
 
Old 08-11-2012, 08:34 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
When you say 'I am available on my site', what do you mean by this? That you (a flesh-and-blood person) are doing something that makes you accessible vi the internet? What exactly constitutes 'online/offline'?
And you want to have a web page which reflects the state of your 'online-ness'? And you want the web page to do this without using PHP? What is the relationship between the web server and the 'ftp provider'?

--- rod.
 
Old 08-11-2012, 11:44 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
[QUOTE=theNbomr;4751662]When you say 'I am available on my site', what do you mean by this?

available at home on skype

That you (a flesh-and-blood person) are doing something that makes you accessible vi the internet?

wanna use bash to update my html site

What exactly constitutes 'online/offline'?

general, i m at available close to pc. i will do lirc to start it

And you want to have a web page which reflects the state of your 'online-ness'?

a gif or a msg plain text on my html

And you want the web page to do this without using PHP?
- no php desired to do such feature

What is the relationship between the web server and the 'ftp provider'?

ftp provider is a regular web provider. likely i wanna no scp nor wput use if posssible

for ex , pure curl to say my site that i m available desired

--- rod. n
 
Old 08-11-2012, 01:54 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
wanna use bash to update my html site
Okay, then use bash to create a CGI. For example:
Code:
#! /bin/bash
# isXeratulOnline.sh
#
/usr/bin/w | /bin/grep Xeratul
if [ $? -eq 1 ]; then
    cat some/Html/Header/File.html 
    echo "Not online" 
    cat some/Html/Trailer/File.html
else 
    cat some/Html/Header/File.html
    echo Online 
    cat some/Html/Trailer/File.html
fi
(left as an exercise to the reader to compose the header and trailer HTML files)
The script would have to be installed in the cgi-bin directory of your web server. Browsers would access the URL as
Code:
http://your.web.server/cgi-bin/isXeratulOnline.sh
It would tell people that you are logged into the server host.

--- rod.
 
  


Reply



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
HTML offline text input Tischbein Programming 5 02-05-2012 09:10 AM
opening html at offline taking much time to open chalu Linux - General 1 07-21-2009 03:14 AM
html code and including html files Hockeyfan Programming 2 08-22-2005 05:11 PM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
Online HTML Tutorial Zuggy Programming 1 11-29-2004 04:02 AM

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

All times are GMT -5. The time now is 07:31 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