summaryrefslogtreecommitdiffstats
path: root/.local/bin/sync-push.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-01 19:16:58 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-01 19:16:58 +0100
commit66044ef9c4975fb3926217b659a76a82638934e2 (patch)
tree84149bedf2dde89ba724700a5b298550a3d11cf9 /.local/bin/sync-push.pl
parentgruvboxed zathura (diff)
downloaddotfiles-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.pl42
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__