You cannot use the handles with the file IO and expect things to work. osproc 
gives you `inputStream()` and `outputStream()` for a reason. 
    
    
    import osproc, streams
    
    ...
      for i in 0..processes.high:
        var process = startProcess(config.subcommand,
                                   options={poStdErrToStdOut, poDemon})
        var fh = process.inputStream()
        fh.writeLine("*regex=", config.regex)
        fh.writeLine("*configured")
        # ensure data is transmitted!
        fh.flush()
    
    

Reply via email to