Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Retrieve SNP information from UCSC genome browser

by taint (Chaplain)
on Jan 10, 2014 at 15:27 UTC ( #1070130=note: print w/ replies, xml ) Need Help??


in reply to Re: Retrieve SNP information from UCSC genome browser
in thread Retrieve SNP information from UCSC genome browser

"FTP is for transfering files, it has no ability to compare them."

Correction;

ftp perlmonks.com Connected to perlmonks.com. 220 perlmonks.com FTP Server (Version ...) ready. Name (perlmonks.com:joebloe):root 331 Password required for root. Passoword: 230 User root logged in. ftp> siz (remote-file) Usage: siz remote-file ^D 221 Goodbye.

"but I am not sure how to compare a local file to a file in the remote server without downloading."

Please see above -- the ftp command is: siz
which you can "compare" to, as you requested. However, if you wish to compare file contents. It is possible, but is more elaborate, and depends on the ftp servers capabilities.

--Chris

λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH


Comment on Re^2: Retrieve SNP information from UCSC genome browser
Download Code
Re^3: Retrieve SNP information from UCSC genome browser
by marto (Bishop) on Jan 10, 2014 at 15:38 UTC

    The documentation you link to provides no usage or in fact mention of a command called siz. If this simply compares the size of files your assertion that this is a file comparison tool is wrong.

      "your assertion that this is a file comparison tool is wrong"

      How so? The command siz returns the remote files size (a number), which can be compared to.

      "The documentation you link to provides no usage or in fact mention of a command called siz"

      Sheesh...

      ftp ftp> ? Commands may be abbreviated. Commands are: ! features mls prompt site $ fget mlsd proxy size account form mlst put sndbuf append ftp mode pwd status ascii gate modtime quit struct bell get more quote suniqu +e binary glob mput rate system bye hash mreget rcvbuf tenex case help msend recv thrott +le cd idle newer reget trace cdup image nlist remopts type chmod lcd nmap rename umask close less ntrans reset unset cr lpage open restart usage debug lpwd page rhelp user delete ls passive rmdir verbos +e dir macdef pdir rstatus xferbu +f disconnect mdelete pls runique ? edit mdir pmlsd send epsv4 mget preserve sendport exit mkdir progress set
      What's the matter? You don't have an ftp command, or a terminal? ;)

      --Chris

      λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

        "How so? The command siz returns the remote files size (a number), which can be compared to."

        Oh dear, it's a good job I don't have to use anything you've written. Black.txt:

        BLACKBLACKBLACKBLACKBLACKBLACKBLACK

        White.txt:

        WHITEWHITEWHITEWHITEWHITEWHITEWHITE

        Since both files are the 35 bytes you are arguing that black is white? Comparing files based on size is stupid. Just because they are the same size does not mean they have the same content.

        "What's the matter? You don't have an ftp command, or a terminal? ;)"

        I do, siz is not listed as a command. I'd have thought you'd have learned from previous failures to link to valid documentation which backs up your claim.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1070130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-12-28 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls