ãããã£ã¬ã¯ããªã«ãã¡ã¤ã«ãç½®ããããä½ããããã ã¿ããã«ãã£ã¬ã¯ããªãç£è¦ãã¦å¦çãè¡ãããå ´åãLinux::Inotify2 ã便å©ã§ããã ãã¡ãããinotify ãå©ç¨ã§ããç°å¢ã§ãã使ãã¾ãããã ä¸ã¯ããã¼ã ãã£ã¬ã¯ããªã®âbackupâãã£ã¬ã¯ããªã«ãã¡ã¤ã«ãç½®ãã¨"backup_server"ã«ãã®ãã¡ã¤ã«ãscpãã¾ãã watch_and_scp.pl #!/usr/bin/perl use strict; use warnings; use Linux::Inotify2; my $watch_dir = $ENV{HOME} . '/backup'; my $inotify = Linux::Inotify2->new or die $!; $inotify->watch( $watch_dir, IN_CLOSE_WRITE | IN_MOVED_TO, s
{{#tags}}- {{label}}
{{/tags}}