client_run.c
author viric@llimona
Sat, 09 Feb 2008 11:56:03 +0100
changeset 196 bca29e2a1a86
parent 146 5e689cb593aa
permissions -rw-r--r--
Fixing a bug related to a message on -t on last job, when it was skipped.

/*
    Task Spooler - a task queue system for the unix user
    Copyright (C) 2007  LluĂ­s Batlle i Rossell

    Please find the license in the provided COPYING file.
*/
#include <sys/types.h>
#include <unistd.h>

#include <stdio.h> /* BAD. main requires this header. */
#include <sys/time.h> /* BAD. main requires this header. */

#include "main.h"

void c_run_tail(const char *filename)
{
    restore_sigmask();
    execlp("tail", "tail", "-f", filename, NULL);
}

void c_run_cat(const char *filename)
{
    restore_sigmask();
    execlp("cat", "cat", filename, NULL);
}