Script for download file with version


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script for download file with version
# 1  
Old 06-17-2012
Script for download file with version

Hi,

Need Shell script to download the file with version or date from internet

Filename will be as
Eg:File-2.3.1.zip

Filename will keep on changing for every 4months as File-2.3.2 or File 2.4


Thanks,
Anil
# 2  
Old 06-17-2012
Do you want the script to determine the filename base on the current date - do you have gnu date on your sytem?
(i.e. date that supports the --date=STRING option)?

If you have wget installed you could use this to fetch file, and the script could be run by cron, say once per month to check for a new version.
# 3  
Old 06-17-2012
Thank you.

Not using date

Here are the directories names on website

2.3.1
2.3
2.2
latest
Among that 2.3.1 is the latest file.Next may change to 2.3.2 or 2.4.Script should download the 2.3.1 folder .Next may should download 2.3.2 or 2.4. Version is keep on changing

Thanks,
Anil
# 4  
Old 06-18-2012
Sounds very similar to a SourceForge download page.

Might be worth posting the URL, as any script will need to process the raw HTML from the site to identify the latest version and then build a download URL to actually fetch the file. If it's not a public page perhaps some demo HTML for the parent page (with all the version folders listed) and example URLs for version download links.
This User Gave Thanks to Chubler_XL For This Post:
# 5  
Old 06-18-2012
Thank you.
Yes it is similar to a SourceForge download page
I am unable to post the URL because getting bug while posting.
When you accessed the URL you will be came to know my requirement.
Once you are in you will be noticing the list of folders among that I need to download the file from 2.3.1 folder.Next month again a new folder will be palced as 2.3.2 or 2.3.4 or 2.4.So please I need a standard shell script to download the file from the desired folder.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Curl , download file with user:pass in bash script

Hello, My question is about curl command. (ubuntu14.04) In terminal, I am able to download my mainfile with: curl -u user1:pass1 http://11.22.33.44/******* When I convert it into bash script like this: #!/bin/bash cd /root/scripts computer_ip=11.22.33.44 curl -u $1:$2... (8 Replies)
Discussion started by: baris35
8 Replies

2. Fedora

How to download latest version of cmake using tar xzf?

...... (3 Replies)
Discussion started by: larry burns
3 Replies

3. Solaris

Need OS version for download

Dear all, We have bought solaries server. During installation of latest solaries, we are having some trouble. One of my old friend suggested that sol-10-u3-ga-sparc might be the solution for those trouble. I've search oracle web but they have removed this old version of update. The torrent has... (4 Replies)
Discussion started by: tahnan
4 Replies

4. Ubuntu

Download latest Ubuntu version from linux command

I have ubuntu 10.4 on my system and want to download newer Ubuntu version like 11.04. Is there any linux command(something like apt-get source used for downloading kernel source) using which I can download directly the newer ubuntu relaease? (2 Replies)
Discussion started by: rupeshkp728
2 Replies

5. Hardware

I need help to download firmware fo HMC from version 7.3.4 to vervion 7.3.5

All, I need to upgrade my HMC from version 7.3.4 to vervion 7.3.5. The HMC has a Machine type of 7310-CR2 Xseries 335 . Where could I download the firmware for such hardware (HMC Machine type of 7310-CR2 Xseries 335 )? Please answer because I need to upgrade that HMC the HMC to bring to... (3 Replies)
Discussion started by: jesifra
3 Replies

6. Shell Programming and Scripting

Ask for Version of Script on Server w/o download

Hello! I'm sorry if my question is kind of a noob question, but I'm searching for a way to "ask" a Server for the Version of a File. The problem is I have several clients asking every hour or so for the newest version of the file, so if I'm just downloading a md5sum or so I'm getting a lot of... (10 Replies)
Discussion started by: al0x
10 Replies

7. AIX

Where can I download a trial version of AIX?

hi how r? , where can I download a trial version of AIX , I know this is a very IMB verions but there some demo saludos (2 Replies)
Discussion started by: cejodrake
2 Replies

8. Shell Programming and Scripting

Script to download file using wget

Hi I need a Shell script that will download a text file every second from a http server using wget. Can anyone provide me any pointers or sample scripts that will help me go about this task ??? regards techie (1 Reply)
Discussion started by: techie82
1 Replies

9. Shell Programming and Scripting

Automatic download of csv file using a shell script

I want to automatically download a CSV file daily which can be found here: http://www.londonstockexchange.com/en-gb/pricesnews/prices/coveredwarrants/search.htm and the link is named "Click to download covered warrants (100Kb)" onthe right hand side. What commands can I use to invoke clicking... (1 Reply)
Discussion started by: figaro
1 Replies

10. Linux

How do i download java 1.3 on linux(kinda have this old version)

i wish to run java files on inux but while downloading it into linux there is no problem but when i r try to execute a java file it says javac not found. help pleas (5 Replies)
Discussion started by: wojtyla
5 Replies
Login or Register to Ask a Question