diff options
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/sync-pull.pl | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/.local/bin/sync-pull.pl b/.local/bin/sync-pull.pl deleted file mode 100755 index ba65901..0000000 --- a/.local/bin/sync-pull.pl +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/local/bin/perl - -use strict; -use warnings; - -sub main -{ - my $i; - - print "Check...\n"; - $i = 0; - while (system('/bin/pgrep', 'newsboat') == 0) { - print "newsboat running, exiting..."; - exit 1; - } - system( - '/usr/local/bin/rsync', - '-a', - '-e', - 'ssh', - 'root@207.246.81.115:/root/sync/newsboat/cache.db', - '/home/jozan/.local/share/newsboat/cache.db' - ); - system( - '/usr/local/bin/rsync', - '-a', - '-e', - 'ssh', - 'root@207.246.81.115:/root/sync/abook/addressbook', - '/home/jozan/.abook/addressbook' - ); - exit 0; -} - -main(); - -__END__ |