]> iEval git - app-remotegnokii.git/blob - rg-smsd
Initial commit
[app-remotegnokii.git] / rg-smsd
1 #!/usr/bin/perl
2 use v5.14;
3 use warnings;
4
5 use App::RemoteGnokii;
6 use File::Which;
7
8 my $spool = App::RemoteGnokii::cfg 'spool';
9 my $action = which 'rg-action' or die 'Cannot find rg-action in PATH';
10
11 exec 'smsd', -m => 'file', -u => $action, -c => $spool, @ARGV;
12 __END__
13
14 =encoding utf-8
15
16 =head1 NAME
17
18 rg-smsd - Start smsd with RemoteGnokii arguments
19
20 =head1 SYNOPSIS
21
22 rg-smsd
23 rg-smsd -i 5
24
25 =head1 DESCRIPTION
26
27 This convenience script starts gnokii-smsd with rg-action and the configured spool directory. Extra arguments are passed to smsd.
28
29 =head1 ENVIRONMENT
30
31 =over
32
33 =item RGCONF
34
35 The basename of the configuration file. For example, if the configuration file is '/srv/rg/config.yml', RGCONF should be set to '/srv/rg/config'. Defaults to '/etc/rg'.
36
37 =back
38
39 =head1 AUTHOR
40
41 Marius Gavrilescu E<lt>marius@ieval.roE<gt>
42
43 =head1 COPYRIGHT AND LICENSE
44
45 Copyright (C) 2014 by Marius Gavrilescu
46
47 This library is free software: you can redistribute it and/or modify
48 it under the terms of the GNU General Public License as published by
49 the Free Software Foundation, either version 3 of the License, or (at
50 your option) any later version.
51
52
53 =cut
This page took 0.047654 seconds and 4 git commands to generate.