Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Weekly Running script?

by ZWcarp (Beadle)
on Nov 14, 2011 at 20:46 UTC ( #938023=perlquestion: print w/ replies, xml ) Need Help??
ZWcarp has asked for the wisdom of the Perl Monks concerning the following question:

Say I want to make a perl script that will automatically download something once a week, or month perhaps.

Specifically, I want to keep an updated version of the Cosmic database on my local machine. This database can be accessed by going here http://www.sanger.ac.uk/genetics/CGP/cosmic/, clicking the biomart option, then selecting run results, and download to file. How might one automate these steps in a script?

I am not asking anyone to write this script for me, but if you could give me some pointers or direct me to some relevant tutorials or reading that would be superb! Thanks!

Comment on Weekly Running script?
Re: Weekly Running script?
by keszler (Priest) on Nov 14, 2011 at 20:50 UTC
Re: Weekly Running script?
by CountZero (Bishop) on Nov 14, 2011 at 23:01 UTC
    They also have an FTP-site which may be easier to access: FTP link.

    I see on the CosmicMart website that they have a Perl-API (see "Perl" button on the top right hand side). It seems to work with the Biomart modules. They are not on CPAN, but more info on how to get them can be found here.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Weekly Running script?
by choroba (Abbot) on Nov 14, 2011 at 23:44 UTC
    To schedule repeated commands, you can use cron on *nix systems. For MSWin, there should be something called Windows Task Scheduler.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-12-27 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (176 votes), past polls