diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-04 17:09:47 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-04 17:09:47 +0100 |
commit | 8c8217eebd8bc6f196b493dba4d815b1873478f0 (patch) | |
tree | 0d6e4d632eb377d768a763480ffeab6afdf4262c /snooze.c | |
parent | 56480881978a4cb5813746232de9950d46cb3369 (diff) |
Log starting time with -v
Diffstat (limited to 'snooze.c')
-rw-r--r-- | snooze.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |