Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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, 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!

Replies are listed 'Best First'.
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.


    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 keszler (Priest) on Nov 14, 2011 at 20:50 UTC
Re: Weekly Running script?
by choroba (Chancellor) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://938023]
Approved by keszler
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-07-24 19:31 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (357 votes). Check out past polls.