Search found 228 matches
- Thu Jun 05, 2014 2:10 am
- Forum: So, what can you actually DO with newLISP?
- Topic: Can I do cooperative multi-tasking?
- Replies: 2
- Views: 5486
Can I do cooperative multi-tasking?
Is there a possibility of a function that lets me pivot the execution, in the way of saving the current environment (i.e., stacks etc) into a pdl of such, then pop and continue with a saved environment? Thus, I imagine a function, say (pivot store), that firstly makes a blob (copy) of the current ex...
- Wed Jun 04, 2014 12:59 pm
- Forum: newLISP in the real world
- Topic: Some praise and a question
- Replies: 0
- Views: 2550
Some praise and a question
Very recently I stumbled onto the newlisp site and got amazed by the excellent practical sense in the approach; just the right things included for scripting, and yet a proper Lisp system. Hats off for the authors! .. I had a question, but found answers by forum search, so removed it. Now this is jus...
- Wed Jun 04, 2014 5:41 am
- Forum: newLISP in the real world
- Topic: Wanting stdout, stderr and return code of shell commands
- Replies: 2
- Views: 2977
Re: Wanting stdout, stderr and return code of shell commands
It depends on the platform of course. With bash and similar, you could also have (define (exec2 cmd) (exec (string cmd " 2>&1 ; echo $?")) That will nicely parse and deliver the output (stdout and stderr) as a list of lines, with the addition of the return code as an additional string element at the...