ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Check also http://www.picolisp.com for more information
ubLIX has quit [Quit: ubLIX]
andyjpb has quit [Ping timeout: 245 seconds]
freemint has quit [Ping timeout: 245 seconds]
freemint has joined #picolisp
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
freemint has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
orivej_ has joined #picolisp
_whitelogger has joined #picolisp
inara has quit [Quit: Leaving]
inara has joined #picolisp
rob_w has joined #picolisp
andyjpb has joined #picolisp
freemint has joined #picolisp
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
beneroth has joined #picolisp
<beneroth> hi all
<Nistur> o7
<beneroth> o7 Nistur
<Regenaxer> Hi beneroth, Nistur!
<beneroth> Regenaxer, I might have forgotten... but how to open an interactive pipe to an external system command? like (call), but keeping a pipe like done with (pipe). but (pipe) is for pil subprocess. (in) and (out) are not bi-directional, are they? or should I do (in '("+command" ...)) ?
<Regenaxer> exec and pipe
<beneroth> ah
<beneroth> (pipe (exec ...))
<Regenaxer> eg in PilBox
<Regenaxer> (pipe (exec "@bin/ssl" *Hub 443 (pack *Inst "/!watnu?" ...
<Regenaxer> it gets an FD
<beneroth> awesome!
<beneroth> I'm testing
<Regenaxer> :)
<Regenaxer> Typical use is in a 'task'
<beneroth> here it is to use a cli database client. I'd like to keep an open connection, instead making connection anew for every query
<Regenaxer> right
<Regenaxer> another simple example is in 'mail'
<beneroth> so an FD would be perfect. no need for task I guess?
<beneroth> ah nice
<Regenaxer> Yes, task is only needed to wake up if data arrive asyncronously
tankf33der has joined #picolisp
<Regenaxer> Ah, the above is not in PilBox, but some PilBox apps, to synchronize the DB
<tankf33der> o/
<Regenaxer> Hi tankf33der!
<beneroth> Regenaxer, I see. thanks!
<beneroth> Hi tankf33der :D
<beneroth> Regenaxer, works beautifully!
<Regenaxer> Great! :)
<beneroth> (poll 'fd) is also good
<Regenaxer> Yeah, poor man's task handler ;)
<beneroth> though it returns 'fd when the subprocess stopped (so the 'fd is closed I guess?)
<beneroth> any way to check this, beside linux processes?
<Regenaxer> (read) returns NIL
rob_w has quit [Quit: Leaving]
<Regenaxer> Just like in 'task' I expect
<beneroth> bbl
beneroth has quit [Quit: Leaving]
andyjpb has quit [Ping timeout: 268 seconds]
ubLIX has joined #picolisp
ubLIX has quit [Quit: ubLIX]
ubLIX has joined #picolisp
ubLIX has quit [Quit: ubLIX]
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
ubLIX has joined #picolisp
freemint has quit [Ping timeout: 245 seconds]
freemint has joined #picolisp
ubLIX has quit [Quit: ubLIX]
rick42 has quit [Quit: ZNC - http://znc.in]
rick42 has joined #picolisp
freemint has quit [Ping timeout: 245 seconds]