It is currently Thu Apr 17, 2014 1:41 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Update Avira with a script
PostPosted: Wed Feb 04, 2009 2:13 pm 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
<Recovered this part of a topic from google cache. It seems that the topic was deleted.>

Download unxutils:
http://sourceforge.net/project/showfile ... up_id=9328

Extract: cat, grep, read, sh and wget

Save the following script (avira-update-check.sh):
Code:
#!/bin/sh
OLDVERSION=`cat avira-last.txt`

wget -O avira-update.txt http://www.avira.com/en/support/support_downloads.html

NEWVERSION=`grep -A 2 "Avira AntiVir Rescue System" avira-update.txt | grep -m 1 -o "Version : [[:digit:]]*" | grep -o "[[:digit:]]*"`

if [ "$OLDVERSION" = "$NEWVERSION" ]; then
    echo "No update"
else
    echo "Updated version available"
    echo "Download now? (Press any key to continue, press 'Ctrl+C' to abort)"
    pause > nul
    wget -O "avira-$NEWVERSION.iso" http://dlpro.antivir.com/down/vdf/rescuecd/rescuecd.iso
    echo "$NEWVERSION" > avira-last.txt
fi



Run the script with sh.exe avira-update-check.sh.

It works on linux (replaced the pause > nul command with the read command). Not sure if the pause > nul command can be used in the sh script.

The iso will be saved as: avira-<VERSION_NUMBER>.iso
e.g: avira-20081224125550.iso

@ Victor
I will try to make a script that will update the avira definition files and other avira files (some 7z stuff).

_________________
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group