diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-01 19:16:58 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-01 19:16:58 +0100 |
commit | 66044ef9c4975fb3926217b659a76a82638934e2 (patch) | |
tree | 84149bedf2dde89ba724700a5b298550a3d11cf9 /.local/bin/sync-push.pl | |
parent | gruvboxed zathura (diff) | |
download | dotfiles-bsd-66044ef9c4975fb3926217b659a76a82638934e2.tar.gz dotfiles-bsd-66044ef9c4975fb3926217b659a76a82638934e2.tar.bz2 dotfiles-bsd-66044ef9c4975fb3926217b659a76a82638934e2.tar.xz dotfiles-bsd-66044ef9c4975fb3926217b659a76a82638934e2.tar.zst dotfiles-bsd-66044ef9c4975fb3926217b659a76a82638934e2.zip |
working on unixize
Diffstat (limited to '.local/bin/sync-push.pl')
-rwxr-xr-x | .local/bin/sync-push.pl | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/.local/bin/sync-push.pl b/.local/bin/sync-push.pl deleted file mode 100755 index 91b9e83..0000000 --- a/.local/bin/sync-push.pl +++ /dev/null @@ -1,42 +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) { - sleep 5; - $i += 1; - print "Waiting...\n"; - if ($i == 12) { - print "Too long, exiting...\n"; - exit 1; - } - } - system( - '/usr/local/bin/rsync', - '-a', - '-e', - 'ssh', - '/home/jozan/.local/share/newsboat/cache.db', - 'root@207.246.81.115:/root/sync/newsboat/cache.db' - ); - system( - '/usr/local/bin/rsync', - '-a', - '-e', - 'ssh', - '/home/jozan/.abook/addressbook', - 'root@207.246.81.115:/root/sync/abook/addressbook' - ); - exit 0; -} - -main(); - -__END__ |