LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2011, 01:09 PM   #1
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Rep: Reputation: 1
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
 
Old 06-19-2011, 01:45 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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
 
Old 06-19-2011, 02:11 PM   #3
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Original Poster
Rep: Reputation: 1
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
 
Old 06-19-2011, 02:21 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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 View Post
... 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
 
Old 06-19-2011, 02:58 PM   #5
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Original Poster
Rep: Reputation: 1
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?
 
Old 06-19-2011, 03:03 PM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by smturner1 View Post
Code:
wget -r -l1 http://get.adobe.com/flashplayer/download/
Is this correct?
just change the colon and the slashes.

Markus
 
Old 06-19-2011, 03:06 PM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch file conversion command? the same command on all files in a folder ? pete2222 Linux - General 6 10-02-2010 11:59 AM
Wget - Possible to batch download? Jinouchi Linux - Software 7 10-22-2008 11:15 PM
Making a batch/cron for tar command ? centosfan Linux - Server 2 08-19-2008 04:29 PM
using 'at' and 'batch' command harry_0098 Linux - Newbie 1 10-30-2007 10:07 AM
Windows batch script: SET command as variable Dr_Death_UAE Programming 10 09-09-2007 07:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration