LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   is wget command appropriate for batch? (https://www.linuxquestions.org/questions/programming-9/is-wget-command-appropriate-for-batch-887193/)

smturner1 06-19-2011 01:09 PM

is wget command appropriate for batch?
 
I am writing a small batch file to handle the innumerable amount of updates Adobe has each and every month.

I have written the batch file which will go to the website, wait for input (download button/exit), move to the next algorithym and repeat.

My problem is getting the batch file to click the stupid download button. Can I use wget, and can you show me how to use it or point me to a really good api?

Code:

@ECHO OFF
ECHO INSTALLING ADOBE FLASH PLAYER PLUGIN UPDATE
ECHO.
start /wait iexplore.exe http://get.adobe.com/flashplayer/download/
ECHO.
ECHO.
ECHO.
ECHO INSTALLING ADOBE READER PLUGIN UPDATE
ECHO.
start /wait iexplore.exe http://get.adobe.com/reader/download/
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO INSTALLING ADOBE SHOCKWAVE PLUGIN UPDATE
ECHO.
start /wait iexplore.exe http://get.adobe.com/shockwave/thankyou/
ECHO.
ECHO.
taskkill /im iexplore.exe
ECHO.
ECHO.
ECHO.
ECHO COMPLETE!
EXIT


markush 06-19-2011 01:45 PM

Hi,

why don't you do the updates automatically? On Windows any Adobe-program has an option to look automatically for updates. Only constraint is that the user who is logged in must have the appropriate permissions. But in most cases it is sufficient if your user is member of the "Power User" group.

Markus

smturner1 06-19-2011 02:11 PM

The problem with that is that it is too time consuming. I have 50 clients, and 4 servers to update several times a month (especially with Adobe). I have more important things to do then check for updates for 3 different apps on Adobe. The question is why does Adobe have so many patches every month? Couldn't they just pick one day a month like MS?

The other thing is that a batch is for this type of thing. This will probably be the first time the members of this site couldn't help me on an issue. Surprisingly, this is not a real complicated issue I just do not have the experience with it.

look forward to your input.

Shaun

markush 06-19-2011 02:21 PM

Quote:

The problem with that is that it is too time consuming. I have 50 clients, and 4 servers to update several times a month (especially with Adobe). I have more important things to do then check for updates for 3 different apps on Adobe.
Well, I have several M$-domains, but I manage the updates via group-policies (if necessary).

Quote:

Originally Posted by smturner1 (Post 4390101)
... The question is why does Adobe have so many patches every month? Couldn't they just pick one day a month like MS?...

they have many security problems which are often far more important than the problems of Windows itself.

Quote:

The other thing is that a batch is for this type of thing. This will probably be the first time the members of this site couldn't help me on an issue. Surprisingly, this is not a real complicated issue I just do not have the experience with it.
In the case of Adobe I have configured for automatically updating. But if you want to do it this way, why don't you manage the download via a bashscript (with wget) on a Linux-computer and then put the updates on a domaincontroller and let it install automatically when the computers start next time.

Markus

smturner1 06-19-2011 02:58 PM

I would love to do that Marcus, my company just does not allow me to redesign their departmental network. My hands are extremely tied in regards to that.

Your next comment is going to be why we do not manage these policies via group/globally. It's a secret and I am quite sure that if I tell you, tomorrow some guys from cso and security will be walking me out the door.

I am sure there are policies in your department that you have to find a way around......this is what i am trying to do. Find a solution that does not break policies, but gracefully works around them.

wget works in MS, but I am not sure about the syntax.
Code:

wget -r -l1 http//:get.adobe.com/flashplayer/download/
Is this correct?

markush 06-19-2011 03:03 PM

Quote:

Originally Posted by smturner1 (Post 4390134)
Code:

wget -r -l1 http://get.adobe.com/flashplayer/download/
Is this correct?

just change the colon and the slashes.

Markus

markush 06-19-2011 03:06 PM

This doesn't work, but there are sites on the internet where you can download not only the installers but the complete .exe or .msi files. Unfortunately I use this only on Windows and haven't yet the url.

Markus


All times are GMT -5. The time now is 08:29 PM.