summaryrefslogtreecommitdiffstats
path: root/.local/bin/ref-unison.pl
blob: 64ce4db8b60edb8e81e075b2a6f4bacae2ddcd86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/local/bin/perl

use strict;
use warnings;

use constant {
	UNISON_PATH			=> '/usr/local/bin/unison',
	NOTIFY_SEND_PATH	=> '/usr/local/bin/notify-send'
};

sub main
{
	system(
		UNISON_PATH,
		'-ui',
		'text',
		'/usr/home/jozan/.local/share/newsboat/cache.db',
		'ssh://root@jozanleclerc.xyz//root/unison/.local/share/newsboat/cache.db'
	);
	system(
		UNISON_PATH,
		'-ui',
		'text',
		'/usr/home/jozan/.abook/addressbook',
		'ssh://root@jozanleclerc.xyz//root/unison/.abook/addressbook'
	);
	exit 0;
}

main();

__END__