Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Unix command to download a file from the web

  • 14-10-2014 4:02pm
    #1
    Registered Users, Registered Users 2 Posts: 5,659 ✭✭✭


    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,659 ✭✭✭veryangryman


    Thanks lads but curl and wget only work on Lunix.

    Solaris box im using


  • Moderators, Society & Culture Moderators Posts: 17,643 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,792 ✭✭✭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