If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
How do I access a webpage in task scheduler?
How do I access a webpage in task scheduler?
The root problem is that the FREEDNS updater doesn't work in windows 10. I can check and update the URL to Dynamic IP address map directly with: http://freedns.afraid.org/dynamic/up...j-REDACTED-DA0 The browser gives me indication of the current external IP address and whether it has changed. I'd like to do it on a schedule. In task scheduler, I just put that whole line in the action box. When it runs, it pops up a box asking which web browser I want. I have Opera set as the default browser...it recognizes that, but still asks for comfirmation. It does what I want except for the manual intervention required to select the browser. If I put "C:\Program Files\Opera\launcher.exe" in the program box and the above line in the arguments line, the page opens, but the scheduled task stays running after I close the page...and the browser. ++++++++++++++++++++++++++++++++++++++++ I found this: https://www.instructables.com/id/Fre...ows-10-x32x64/ install MS C++ 2015 redistributable x64 Run 64bit updater put the direct link URL in the config file. but it gives me a "connection refused" message in scheduled tasks. ++++++++++++++++++++++++++++++++++++++++++++++++++ ++ I took a quick look at wget and curl, but there's gotta be an easier way. I plan to do this only once. How do I run the above http... on a schedule and terminate the process when done? Ideally, it would update silently in the background. |
Ads |
#2
|
|||
|
|||
How do I access a webpage in task scheduler?
Mike wrote:
How do I access a webpage in task scheduler? The root problem is that the FREEDNS updater doesn't work in windows 10. I can check and update the URL to Dynamic IP address map directly with: http://freedns.afraid.org/dynamic/up...j-REDACTED-DA0 The browser gives me indication of the current external IP address and whether it has changed. I'd like to do it on a schedule. In task scheduler, I just put that whole line in the action box. When it runs, it pops up a box asking which web browser I want. I have Opera set as the default browser...it recognizes that, but still asks for comfirmation. It does what I want except for the manual intervention required to select the browser. If I put "C:\Program Files\Opera\launcher.exe" in the program box and the above line in the arguments line, the page opens, but the scheduled task stays running after I close the page...and the browser. ++++++++++++++++++++++++++++++++++++++++ I found this: https://www.instructables.com/id/Fre...ows-10-x32x64/ install MS C++ 2015 redistributable x64 Run 64bit updater put the direct link URL in the config file. but it gives me a "connection refused" message in scheduled tasks. ++++++++++++++++++++++++++++++++++++++++++++++++++ ++ I took a quick look at wget and curl, but there's gotta be an easier way. I plan to do this only once. How do I run the above http... on a schedule and terminate the process when done? Ideally, it would update silently in the background. Have you set an "account" for the scheduled task ? The browser "profile" folder is related to some user account. By default, Task Scheduler runs a task as SYSTEM, which might not be desired in this case. You can try changing the scheduled task to USERNAME account, then run firefox URL kind of thing. At a guess, Paul |
#3
|
|||
|
|||
How do I access a webpage in task scheduler?
Mike wrote:
I can check and update the URL to Dynamic IP address map directly with: http://freedns.afraid.org/dynamic/up...j-REDACTED-DA0 The browser gives me indication of the current external IP address and whether it has changed. I'd like to do it on a schedule. Win10 comes with curl.exe nowadays, try using that? |
#4
|
|||
|
|||
How do I access a webpage in task scheduler?
On 1/15/2019 7:25 AM, Andy Burns wrote:
Mike wrote: I can check and update the URL to Dynamic IP address map directly with: http://freedns.afraid.org/dynamic/up...j-REDACTED-DA0 The browser gives me indication of the current external IP address and whether it has changed. I'd like to do it on a schedule. Win10 comes with curl.exe nowadays, try using that? curl didn't make any difference. Use task scheduler to update daily at some time. In the command box put cmd In the arguments box put /K curl http://freedns.afraid.org/dynamic/up...jQ1MjJREDACTED The command window opens and displays the correct information. I close the window and go back to task manager. The task is still running. This is the log entry. I truncated some GUID to make it fit. Information 1/15/2019 7:57:10 PM 102 Task completed (2) Information 1/15/2019 7:57:10 PM 201 Action completed (2) Information 1/15/2019 7:55:00 PM 200 Action started (1) Information 1/15/2019 7:55:00 PM 100 Task Started (1) Information 1/15/2019 7:55:00 PM 129 Created Task Process Information 1/15/2019 7:55:00 PM 107 Task triggered on scheduler Info 789a68bd-a86f-419f-97d0-23c5217e08e9 But the main task scheduler window says that the task status is RUNNING. If I let it run, it won't run again tomorrow unless I uncheck the box to allow it. Then, won't it just keep stacking up running instances? I tried running the cmd without the /K entry previously and it made no difference in the running status. I found lots of people on the web with the problem, but no solutions. I'm trying to limit testing this because they get excited and shut you down if you run the update too often. I set it to stop the task if it runs longer than an hour. I'll find out if that helped tomorrow; but it seems like a band-aid to cover something I did wrong in the setup. What do I do to get the task back to READY status? |
#5
|
|||
|
|||
How do I access a webpage in task scheduler?
Mike wrote:
On 1/15/2019 7:25 AM, Andy Burns wrote: Mike wrote: I can check and update the URL to Dynamic IP address map directly with: http://freedns.afraid.org/dynamic/up...j-REDACTED-DA0 The browser gives me indication of the current external IP address and whether it has changed. I'd like to do it on a schedule. Win10 comes with curl.exe nowadays, try using that? curl didn't make any difference. Use task scheduler to update daily at some time. In the command box put cmd In the arguments box put /K curl http://freedns.afraid.org/dynamic/up...jQ1MjJREDACTED The command window opens and displays the correct information. I close the window and go back to task manager. The task is still running. This is the log entry. I truncated some GUID to make it fit. Information 1/15/2019 7:57:10 PM 102 Task completed (2) Information 1/15/2019 7:57:10 PM 201 Action completed (2) Information 1/15/2019 7:55:00 PM 200 Action started (1) Information 1/15/2019 7:55:00 PM 100 Task Started (1) Information 1/15/2019 7:55:00 PM 129 Created Task Process Information 1/15/2019 7:55:00 PM 107 Task triggered on scheduler Info 789a68bd-a86f-419f-97d0-23c5217e08e9 But the main task scheduler window says that the task status is RUNNING. If I let it run, it won't run again tomorrow unless I uncheck the box to allow it. Then, won't it just keep stacking up running instances? I tried running the cmd without the /K entry previously and it made no difference in the running status. I found lots of people on the web with the problem, but no solutions. I'm trying to limit testing this because they get excited and shut you down if you run the update too often. I set it to stop the task if it runs longer than an hour. I'll find out if that helped tomorrow; but it seems like a band-aid to cover something I did wrong in the setup. What do I do to get the task back to READY status? If you are keeping the command open, is this because you want to watch the interactive output ? The /k suggests you're keeping that cmd.exe instance open or something. In the example here, they use "-v" for verbose output. https://stackoverflow.com/questions/...indows-console curl -v google.com * About to connect() to google.com port 80 (#0) * Trying 173.194.35.105... * connected * Connected to google.com (173.194.35.105) port 80 (#0) GET / HTTP/1.1 User-Agent: curl/7.28.1 Host: google.com Accept: */* ... * Closing connection #0 Maybe there's some hint there as to whether the thing is trying to "keepalive" the connection ? Paul |
#6
|
|||
|
|||
How do I access a webpage in task scheduler?
Mike wrote:
But the main task scheduler window says that the task status is RUNNING. Press F5 to refresh the task list, it never does so for itself. |
#7
|
|||
|
|||
How do I access a webpage in task scheduler?
On 1/16/2019 12:14 AM, Andy Burns wrote:
Mike wrote: But the main task scheduler window says that the task status is RUNNING. Press F5 to refresh the task list, it never does so for itself. I can try that, but I did close and reopen task scheduler. Shouldn't that do it? |
#8
|
|||
|
|||
How do I access a webpage in task scheduler?
On 1/16/2019 12:40 AM, Mike wrote:
On 1/16/2019 12:14 AM, Andy Burns wrote: Mike wrote: But the main task scheduler window says that the task status is RUNNING. Press F5 to refresh the task list, it never does so for itself. I can try that, but I did close and reopen task scheduler. Shouldn't that do it? Well, dang if F5 didn't do it. No clue why restarting the task scheduler wasn't doing it. I guess I'm good to go. Thanks for the tips. |
#9
|
|||
|
|||
How do I access a webpage in task scheduler?
Mike wrote:
Andy Burns wrote: Press F5 to refresh the task list, it never does so for itself. I can try that, but I did close and reopen task scheduler. Shouldn't that do it? Yes it should, just that I've seen several people get confused when the status automatically changes from "ready" to "running", when they run a task, but surprised it doesn't change back when the task completes. If you run CMD /K you'd expect the process not to die, try CMD /C |
#10
|
|||
|
|||
How do I access a webpage in task scheduler?
On 1/16/2019 12:57 AM, Andy Burns wrote:
Mike wrote: Andy Burns wrote: Press F5 to refresh the task list, it never does so for itself. I can try that, but I did close and reopen task scheduler. Shouldn't that do it? Yes it should, just that I've seen several people get confused when the status automatically changes from "ready" to "running", when they run a task, but surprised it doesn't change back when the task completes. If you run CMD /K you'd expect the process not to die, try CMD /C But what about after I closed the window? The only reason the /K is there is for diagnostic purposes. Another confusing quirk about this site is that the response is, "Error the address did not change." So the diagnostic line in the task manager window is "error" even though the response was exactly what was expected. Thanks for your patience getting me unstuck. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|