I'm writing a perl program where I want to accept all kinds of file names from the user, including /home/foo/bar.txt and scp://server/some/file.txt or whatever. And then I thought that if I can find a cmd line program that does it, I'll find a perl module that does it too, or I'll just run it through perl's system() call.I thought of cURL and/or lftp, but on ubuntu, I get:> curl scp://server/some/filecurl: (1) Protocol scp not supported or disabled in libcurl> lftp -c 'get scp://server/some/file'get: scp - not supported protocolFor curl I investigated why that was on Ubuntu and found curl and pycurl is not compiled with sftp support - basically it ain't gonna happen unless I recompile libcurl*, but I don't want to require my users to apply a patch to libcurl*.Sure, I can write it myself as in:if ($proto eq 'scp') {    # handle scp    open I, 'scp ...' or die;} elsif ($proto eq 'http') {    open I, 'wget ...' or die;} else {    # whatever}But I'd much rather somebody else write/test/debug that with a huge list of protocols and I'm surprised I couldn't find anything that does this out-of-the-box! Do you know of any that I missed?
Need command-line program to download all of http:// https:// scp:// ftp:// style links (on e.g. ubuntu)
command line;scp;perl;ftp;http
I believe protocol name is sftp, not scp.In my system, following works: lftp -c 'get sftp://someserver/file', as well as ftp and http.