Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Unix command to download a file from the web

  • 14-10-2014 04:02PM
    #1
    Registered Users, Registered Users 2 Posts: 5,764 ✭✭✭


    Ive been playing around with this for ages.

    On a Solaris machine, i want to get a file from www.somewebsite.com/fileXYz?version=1

    Is there a simple command for this?


Comments

  • Registered Users, Registered Users 2 Posts: 157 ✭✭Craazysteve




  • Registered Users, Registered Users 2 Posts: 291 ✭✭Seridisand


    You can use a wget command from the terminal


  • Registered Users, Registered Users 2 Posts: 586 ✭✭✭Aswerty


    Sound like your looking for the "curl" command.

    See this

    Just seen above post. This might be of interest.


  • Registered Users, Registered Users 2 Posts: 5,764 ✭✭✭veryangryman


    Thanks lads but curl and wget only work on Lunix.

    Solaris box im using


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    Solaris box im using

    S10:

    /usr/sfw/bin/wget


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 586 ✭✭✭Aswerty


    cUrl is a cross platform library, you can find a download for it on the website of the first link in my original post. I don't know if it comes prepackaged in Solaris.


  • Registered Users, Registered Users 2 Posts: 4,846 ✭✭✭cython


    Graham wrote: »
    S10:

    /usr/sfw/bin/wget

    This. Solaris is unfortunately annoyingly insistent about littering what should be standard commands across various non-standard locations and off the path (ever try to get a full length ps output? It also requires you to use a less-than-standard ps location and syntax). gtar is another one, as tar behaves differently. I could go on, but that would be waaaaayyy off topic.


  • Closed Accounts Posts: 2,267 ✭✭✭h57xiucj2z946q


    As someone mentioned above, GNU utils are not in your common /usr/bin folder on Solaris.

    remember if you are behind proxy, to set your env var first
    bash: export http_proxy=http://www.proxy.org:8080
    c shell: set http_proxy http://www.proxy.org:8080 
    


Advertisement