0
I am working with a Webservice (SOAP + XML) that requires access every day on a link, I want to automate this service on my Ubuntu Server, I thought of using Lynx along with Crontab to access the link and then close, follow the Crontab code:
0 6 * * * lynx https://site.com/WebService
1 6 * * * killall lynx
So, access occurs every day, at the same time and after a minute it closes everything that exists of Lynx, the problem is that it does not work!
It accesses the link, but it’s as if "I didn’t activate the XML" of the page, so Webservice doesn’t work
The page code was developed in PHP and using Curl to call/run XML. If you access the link through a browser, it works perfectly
Is there any way to solve this? Or another method to automate this access?
I do need PHP! Because it is an integration of websites, PHP together with Curl create an XML and send it, so I get the return information, which is a session number, saying that "I am connected to Webservice", I have to run every day because this session lasts 2 days.. I can post any part of the code if you want to see! For this reason I can not host on the site it, I will try the script you made and see the result!
– user70876
Try only using the
curl --silent
, maybe it already works. @user70876– Guilherme Nascimento
I just performed a test here and it already worked!! I have already accessed the services of Webservice! I’ve already added to Crontab, tomorrow I check if you’ve updated again! Thanks! I’ll mark your reply as correct!!
– user70876
@user70876 you can wait until tomorrow to mark the answer, first make the necessary tests. See you.
– Guilherme Nascimento