File: childprocess.cc

package info (click to toggle)
ssh-cron 2.00.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 840 kB
  • sloc: cpp: 1,372; fortran: 200; makefile: 99; sh: 36; ansic: 10
file content (23 lines) | stat: -rw-r--r-- 536 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define XERR "cron"
#include "cron.ih"

    // via Fork

void Cron::childProcess()
{
// for testing purposes: 
//                  nothing happens but the received info is sent to cerr
//    string line;
//    getline(cin, line);
//    while (getline(cin, line))
//        xerr(s_agent << line);

    Proc process(s_agent, Proc::REPLACE);

    // ssh-add works OK, but requires package ssh-askpass to be installed

    process.start();

    // this point is never reached
    fmsg << "could not execute `" << s_agent << '\'' << noid;
}