X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=snooze.c;fp=snooze.c;h=730fb4bb9365b4eeddbb9bd59273a302fc8c0922;hb=2de8262c590c5de28a1761be531ccf8453cd8129;hp=06329e389d6afbe858de2ef793b952fa764653e0;hpb=f62a5e3b2e05e3aa0c8bb6b0bfec83c760778ef3;p=user%2Fhenk%2Fcode%2Fsnooze.git diff --git a/snooze.c b/snooze.c index 06329e3..730fb4b 100644 --- a/snooze.c +++ b/snooze.c @@ -392,16 +392,16 @@ main(int argc, char *argv[]) } } - // no command to run, the outside script can go on - if (argc == optind) - return 0; - if (vflag) { now = time(0); tm = localtime(&now); printf("Starting execution at %s\n", isotime(tm)); } + // no command to run, the outside script can go on + if (argc == optind) + return 0; + execvp(argv[optind], argv+optind); perror("execvp"); return 255;