Rev 83 | Rev 102 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 83 | Rev 100 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | /**
|
3 | /**
|
4 | * \file ict-main.cpp
|
4 | * \file ict-main.cpp
|
5 | *
|
5 | *
|
6 | * inotify cron system
|
6 | * inotify cron system
|
7 | *
|
7 | *
|
8 | * Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz>
|
8 | * Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz>
|
9 | *
|
9 | *
|
10 | * This program is free software; you can use it, redistribute
|
10 | * This program is free software; you can use it, redistribute
|
11 | * it and/or modify it under the terms of the GNU General Public
|
11 | * it and/or modify it under the terms of the GNU General Public
|
12 | * License, version 2 (see LICENSE-GPL).
|
12 | * License, version 2 (see LICENSE-GPL).
|
13 | *
|
13 | *
|
Line 23... | Line 23... | ||
23 | #include <sys/wait.h>
|
23 | #include <sys/wait.h>
|
24 | #include <sys/inotify.h>
|
24 | #include <sys/inotify.h>
|
25 | #include <fcntl.h>
|
25 | #include <fcntl.h>
|
26 | #include <stdlib.h>
|
26 | #include <stdlib.h>
|
27 | #include <limits.h>
|
27 | #include <limits.h>
|
- | 28 | #include <cstring>
|
|
28 | 29 | ||
29 | #include "inotify-cxx.h"
|
30 | #include "inotify-cxx.h"
|
30 | #include "appargs.h"
|
31 | #include "appargs.h"
|
31 | 32 | ||
32 | #include "incron.h"
|
33 | #include "incron.h"
|
Line 43... | Line 44... | ||
43 | /// incrontab version string
|
44 | /// incrontab version string
|
44 | #define INCRONTAB_VERSION INCRONTAB_NAME " " INCRON_VERSION
|
45 | #define INCRONTAB_VERSION INCRONTAB_NAME " " INCRON_VERSION
|
45 | 46 | ||
46 | /// incrontab description string
|
47 | /// incrontab description string
|
47 | #define INCRONTAB_DESCRIPTION "incrontab - inotify cron table manipulator\n" \
|
48 | #define INCRONTAB_DESCRIPTION "incrontab - inotify cron table manipulator\n" \
|
48 | "(c) Lukas Jelinek, 2006, 2007"
|
49 | "(c) Lukas Jelinek, 2006, 2007, 208"
|
49 | 50 | ||
50 | /// incrontab help string
|
51 | /// incrontab help string
|
51 | #define INCRONTAB_HELP INCRONTAB_DESCRIPTION "\n\n" \
|
52 | #define INCRONTAB_HELP INCRONTAB_DESCRIPTION "\n\n" \
|
52 | "usage: incrontab [<options>] <operation>\n" \
|
53 | "usage: incrontab [<options>] <operation>\n" \
|
53 | " incrontab [<options>] <FILE-TO-IMPORT>\n\n" \
|
54 | " incrontab [<options>] <FILE-TO-IMPORT>\n\n" \
|
Line 62... | Line 63... | ||
62 | " -V, --version prints program version\n\n" \
|
63 | " -V, --version prints program version\n\n" \
|
63 | "\n" \
|
64 | "\n" \
|
64 | "These options may be used:\n" \
|
65 | "These options may be used:\n" \
|
65 | " -u <USER>, --user=<USER> overrides current user (requires root privileges)\n" \
|
66 | " -u <USER>, --user=<USER> overrides current user (requires root privileges)\n" \
|
66 | " -f <FILE>, --config=<FILE> overrides default configuration file (requires root privileges)\n\n" \
|
67 | " -f <FILE>, --config=<FILE> overrides default configuration file (requires root privileges)\n\n" \
|
67 | "For reporting bugs please use http:://bts.aiken.cz\n"
|
68 | "For reporting bugs please use http://bts.aiken.cz\n"
|
68 | 69 | ||
69 | 70 | ||
70 | 71 | ||
71 | 72 | ||
72 | /// Copies a file to an user table.
|
73 | /// Copies a file to an user table.
|