[SOLVED] Synchronization of date between server and apache webserver, grep and sed instructions.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you want to verify/debug your script, maybe you could start by displaying variables progressively so you see as soon as a problem arises
You can also add
Would be nice to explain what did you try, what's happened and what do you want to achieve.
I don't think this is valid: http://google.com-'$date'
Hi,
Thanks for the reply. I am trying to fetch the current date from URL ex: http://www.google.com/ and I would like to do a script such that if the URL doesnot display the current date then there should be an error.
Hi we have configured apache such that when you browse the web server you see a welcome date for example if you have logged in today it shows today date. but I need to implement a monitoring check for this. whenever you login via the apache webserver you see a date if you login tomorrow it shows tommorrow date. last week I had a issue with that where it was not updating the current date. so I am trying now to implement a check. So I thought once I develop a script it would be easy to create monitoring check.
Hi we have configured apache such that when you browse the web server you see a welcome date for example if you have logged in today it shows today date. but I need to implement a monitoring check for this. whenever you login via the apache webserver you see a date if you login tomorrow it shows tommorrow date. last week I had a issue with that where it was not updating the current date. so I am trying now to implement a check. So I thought once I develop a script it would be easy to create monitoring check.
So you don't trust the date command, and you want to use Google's date instead? If you explain to me how to show the current date with Google, we can help with your script.
It's probably better to fix your time management though. Ensure NTP is configured correctly and that you have access to one or more working NTP servers.
So you don't trust the date command, and you want to use Google's date instead? If you explain to me how to show the current date with Google, we can help with your script.
It's probably better to fix your time management though. Ensure NTP is configured correctly and that you have access to one or more working NTP servers.
Hi I took google as an example, As said we use date command on the server to get the current date but when you wanted to develop some monitoring checks its complicated and doesnot work.when I try to execute the script i am getting errors. Ofcourse NTP is configured correctly
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.