Why not write a cron job for the update process and stick it on each machine? I wrote a simple one a while back that has worked pretty good for me.
#!/usr/bin/perl -w ################################################################ # Program: auto-update # Programmer: Elijah # Requires: apt for Red Hat/Fedora # # This app does nightly checks for upgradable system packages. # Simply drop this program in your cron.daily directory # and set to executable (chmod +x). # # Note* # This could cause issues or loss of service, use at your own # risk. If a package is updated and has problems you might not # even be aware of the outage until hours (or days) later. # ############################################################### use strict; my $timestamp = `date`; my @time = split(/ /, $timestamp); my $file = $time[2]."-".$time[1]."-".$time[5]; my $create_log = "/var/log/system-update/$file"; my $grab_list = `apt-get -y update`; my $update_status = `apt-get -y dist-upgrade`; my $clean = `apt-get -y clean`; my $timestamp2 = `date`; open (FILE, ">>$create_log") || die "Cannot open $create_log\n"; print FILE "Log started at: ".$timestamp,"\n\n"; print FILE "###################\n"; print FILE "### List Status ###\n"; print FILE "###################\n"; print FILE $grab_list,"\n\n"; print FILE "##############################\n"; print FILE "### Package Upgrade Status ###\n"; print FILE "##############################\n"; print FILE $update_status,"\n\n"; print FILE "#######################\n"; print FILE "### Clean Up Status ###\n"; print FILE "#######################\n"; if ($clean eq "") { print FILE "Cleanup was successfull!\n\n"; }else{ print FILE $clean,"\n\n"; } print FILE "Log ended at: ".$timestamp2,"\n"; close(FILE);
This would probably be your easiest bet. Just be carefull and read the header about using this to update crucial servers because this will update all new packages and Kernels and that could cause a problem on some systems.

In reply to Re: Net::SSH::Perl with apt-get by Elijah
in thread Net::SSH::Perl with apt-get by Cmdr_Tofu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.