Re: pipes & redirection

2008-08-08 Thread Tomas Hlavaty
Hi Alex, >(out (list 'sh "-c" (pack "bcrypt " F " 2>/dev/null)) > (prinl Salt) > ... ) I like that. Thanks for advice, Tomas -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Re: pipes & redirection

2008-07-29 Thread Alexander Burger
Hi Tomas, > Do you mean redirecting stderr of the main picolisp process at the > start from shell or is there a way of redirecting forked child Yes. Usually, I do that for production applications anyway. But it will log that noisy messages, too. > processes, maybe with some trick like (out '/de

Re: pipes & redirection

2008-07-28 Thread Tomas Hlavaty
Hi Alex, > Doing without the help of a shell is also possible, perhaps a lot > more efficient but a bit unintuitive: > >: (pipe > (pipe (in "lib.l" (out '(base64) (echo))) > (out '(wc "-l") > (echo) ) ) > (read) ) > -> 145 that's what I was after. It is a bit

Re: pipes & redirection

2008-07-28 Thread Alexander Burger
Hi Tomas, > is it possible in picolisp to create pipes from external programs, > e.g. like in bash? I.e. create a pipe, write to it on one end and > read from it on the other end? E.g. `base64 | wc -l`? A one-stage pipe to another program can be called directly, as shown in the example for 'pip

pipes & redirection

2008-07-27 Thread Tomas Hlavaty
Hi Alex, is it possible in picolisp to create pipes from external programs, e.g. like in bash? I.e. create a pipe, write to it on one end and read from it on the other end? E.g. `base64 | wc -l`? Also, is it possible in the following code to suppress the two prompts Encryption key: Again: sho