summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-11-04 17:09:47 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-11-04 17:09:47 +0100
commit8c8217eebd8bc6f196b493dba4d815b1873478f0 (patch)
tree0d6e4d632eb377d768a763480ffeab6afdf4262c
parent56480881978a4cb5813746232de9950d46cb3369 (diff)
Log starting time with -v
-rw-r--r--snooze.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/snooze.c b/snooze.c
index ce6d93d..b88db77 100644
--- a/snooze.c
+++ b/snooze.c
@@ -327,6 +327,12 @@ int main(int argc, char *argv[])
if (argc == optind)
return 0;
+ if (vflag) {
+ now = time(0);
+ tm = localtime(&now);
+ printf("Starting execution at %s\n", isotime(tm));
+ }
+
execvp(argv[optind], argv+optind);
perror("execvp");
return 255;