|
From: Christian P. <cp...@se...> - 2004-12-21 14:04:23
|
Am Montag 20 Dezember 2004 22:12 schrieb stephan beal:
> On Monday 20 December 2004 12:52, Christian Prochnow wrote:
> > > Process proc("http://...");
> > > proc.addArg( "foo=bar" );
> >
> > This should already work. Have a look into 'demo/process.cpp'.
>
> It works with bins for me, but not with URLs:
>
> Process proc("http://s11n/");
>
> creating process
> I/O error: No such file or directory
>
> i assume it's the same problem as the IOManager example not being able
> to find http handler.
Ahh ok, now i got you. The 'Process' class only supports spawning local
processes and reading/writing to their stdin/stdout. I would like to leave
this unchanged. Process is a low-level system abstraction class, which should
be as small as possible.
Instead i would implement a IOPlugin "process://" which could do the job.
That way you could do every IO with the IOManager.
> > For accessing process environment, a simple ProcessEnv class exists.
>
> i'd like to add funcs to do env ${var} expansion on strings. e.g.:
>
> std::string s = myenv.parseVars( inputstring );
>
> i've got the code for it, just need to plug it in to the tree. With that
> support we can do things like: open_file( "${HOME}/.myconf" ).
>
> In eshell, before an input command is passed off to a client eshell does
> var and alias expansion on it, plus expansions provided by wordexp (man
> 3).
Great! I would love it.
> See ya!
Greetings,
Christian
|