From: stephan b. <st...@s1...> - 2004-12-20 21:13:15
|
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. > 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). See ya! -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |