author | viric@llimona |
Mon, 12 Nov 2007 09:57:46 +0100 | |
changeset 140 | 0b99d94818d1 |
parent 95 | d31aaee661d1 |
child 146 | 5e689cb593aa |
permissions | -rw-r--r-- |
49 | 1 |
/* |
2 |
Task Spooler - a task queue system for the unix user |
|
3 |
Copyright (C) 2007 LluĂs Batlle i Rossell |
|
4 |
||
5 |
Please find the license in the provided COPYING file. |
|
6 |
*/ |
|
34 | 7 |
#include <sys/types.h> |
8 |
#include <unistd.h> |
|
9 |
||
92
05004c52ecff
Better error reports on internal handled errors.
viric@llimona
parents:
49
diff
changeset
|
10 |
#include <stdio.h> /* BAD. main requires this header. */ |
05004c52ecff
Better error reports on internal handled errors.
viric@llimona
parents:
49
diff
changeset
|
11 |
|
34 | 12 |
#include "main.h" |
13 |
||
14 |
void c_run_tail(const char *filename) |
|
15 |
{ |
|
95 | 16 |
restore_sigmask(); |
34 | 17 |
execlp("tail", "tail", "-f", filename, NULL); |
18 |
} |
|
19 |
||
20 |
void c_run_cat(const char *filename) |
|
21 |
{ |
|
95 | 22 |
restore_sigmask(); |
34 | 23 |
execlp("cat", "cat", filename, NULL); |
24 |
} |