0
I am trying to login to a particular website, then proceed to a particular page on that website and auto-refresh every X seconds.
Here's what I have so I can login:
curl --data "Username=xx&Password=xx&Login=Login" [url that login form submits]
Here's what I have to auto-refresh the web page:
while true; do wget -qO- https://www.website > /dev/null; sleep 60; done
- login to website
- go to page to be auto-refreshed
- auto-refresh every X seconds
How can I combine these codes (or similar functioning ones) so that they can carry out the task I need in a loop until cancelled with ie. CTRL + C?
How is your question not its own answer? Just throw the quoted lines into a bash script, make it executable and execute it. – davidgo – 2019-05-06T04:03:02.517
In that case will you take the liberty of answering the question then please? When I attempt your suggestion it does not seem to function properly at all. I would appreciate it. Thanks. – Anonymous – 2019-05-08T16:24:13.827
What exactly happens when you put ot in tne script and run it? IE what is the error/how does it fail? – davidgo – 2019-05-08T19:55:40.330
There are many different outputs as I was never clear on how to run my pieces of code in the first place. – Anonymous – 2019-05-13T05:36:40.163
I can't work out what you are asking. Did you inherit those lines of code from someone else, and just following them exactly, or did you come up with them? Do you have an editor you can use? What are the outputs you are getting when you try run the script? – davidgo – 2019-05-13T05:45:55.727
I got them on this site from other questions but they do not work together, I wouldn't know how to do that. – Anonymous – 2019-05-13T10:12:56.520
Is there a better way to login to a site and auto refresh page to appear online? I am just trying to do this as a background process hidden (taking up as little system resources as possible) and running on every boot, and refreshing the page every 60 seconds or so. Thanks for your time. – Anonymous – 2019-05-13T10:14:34.357