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
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
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.
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
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.
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.