Overclock.net banner

1 - 12 of 12 Posts

·
Registered
Joined
·
1,494 Posts
Discussion Starter #1
I am not a coder in anyway.
But I need a URL to run in the background for my security cameras.
When you enter the URL, it executes a function on the camera but I need to to happen every 5 minutes.

I was able to make a batch file but it would open a browser.
Do I need to download some kind of software program to execute a code like this?
 

·
Registered
Joined
·
2,053 Posts
I'm not sure. On Linux it would be

Code:

Code:
wget yourUrlHere > /dev/null 2>&1
which would contact that URL and ignore the HTML that comes back (wget normally downloads the results and saves them to a local file). If you use Cygwin on Windows it ought to be pretty similar.
 

·
Software 'Engineer'
Joined
·
893 Posts
do you need to do anything with the result from the server?
 

·
Registered
Joined
·
1,494 Posts
Discussion Starter #6
Quote:
Originally Posted by jakethesnake438 View Post

do you need to do anything with the result from the server?
No, executing the URL runs a function on the camera. I would just need it to run with zero output.
 

·
Registered
Joined
·
786 Posts
Have you spoken to the manufacturer of the camera to see what your options are? Maybe they have a tool to accomplish this already or another way to trigger the function.

Also it may help if we knew the make/model of the cameras and the function you are trying to trigger.

On windows I think its possible to open a url in a browser and at least keep it minimized. You could then create a scheduled task to fire it off at whatever interval you like.

Once triggered, does the function require that the url/browser stay open to complete?

EDIT: to clarify are you on Windows or Linux from which you need to do this?
 

·
 
Joined
·
29,532 Posts
Use cURL:
https://curl.haxx.se/download.html

The command is really easy "curl "

Use Windows' own Task Scheduler to run this periodically.

/e: wget will also work, but cURL is more flexible if you ever need to go outside HTTP/FTP territory.
 

·
New001
Joined
·
2,668 Posts
Hey dseg, made a simple java app that can do what you want. (just need to have java8 installed (1.8 latest))

Basically choose http or https,
enter a URL you want to request (ie. www.google.com),
enter the interval of the requests in minutes,
and click start.
Then you can click the x to minimize to system tray so it doesn't bother you.





It logs the successful requests so you can see its running.

I'll put the source code on github in a sec in case you are worried it is doing something suspicious
tongue.gif


link to zipped jar file on google drive:
https://drive.google.com/file/d/1eKaYhsBAhbKiXQp0dWY5keYvNooVts54/view?usp=sharing
 

·
Registered
Joined
·
23 Posts
curl is your best friend if you are using php language
 
1 - 12 of 12 Posts
Top