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 all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
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

Schedule FTP Transfers

  • 24-01-2007 9:57pm
    #1
    Registered Users, Registered Users 2 Posts: 1,452 ✭✭✭


    Not sure if this is the correct place to post. So please Mod move me if needs be! :)

    I'm jusr wondering if anyone has a solution *one you made earlier* for automating an FTP download of files from a webserver.

    I can see there are many ways of doing it, but I guess I'm just too lazy to figure it out myself!

    I'm using ubuntu 6.1! So if there are any nice proggies that will do it less manually than a command line prompt that suits me! :)

    Thanks!
    Tom


Comments

  • Moderators, Music Moderators Posts: 23,361 Mod ✭✭✭✭feylya


    What about setting up a cron job? Should be the quickest way of doing it...


  • Closed Accounts Posts: 6,300 ✭✭✭CiaranC


    Schedule a cron job for wget


  • Registered Users, Registered Users 2 Posts: 32,136 ✭✭✭✭is_that_so


    You can do it with Perl and then run it as a cron job. Here's some code. Perldoc will gives you more info.
    #!/usr/bin/perl
    
    use Net::FTP;
    use Cwd;
    
    my $server_name='servername';
    my $login='username';
    my $pword='password';
    my $dir='location of files on server';
    my $localdir='local directory';
    
    
    $ftp = Net::FTP->new($server_name);         # New object
    $ftp->login($login, $pword);       # log in
    
    $ftp->connect($server_name),"\n"; 
    $ftp->binary;
    $ftp->cwd($dir),"\n";   
    $ftp->get($filename); 
    $ftp->quit;
    
    


  • Registered Users, Registered Users 2 Posts: 1,452 ✭✭✭tomED


    I went with the cron job and wget - so far so good! :)

    Thanks everyone!


Advertisement