Bad argument when open_port with spawn_executable

Hynek Vychodil vychodil.hynek@REDACTED
Mon Jul 6 12:48:13 CEST 2009


Hello,
according to documentation I'm trying use spawn_executable argument to
open_port/2. It seems there is a bug or I missed something?

13> open_port({spawn_executable, os:find_executable("perl")}, []).
** exception error: bad argument
     in function  open_port/2
        called as open_port({spawn_executable,"/usr/bin/perl"},[])

I obtain same result for wide variety of PortSettings which seems not
affecting it.

Best regards

-- 
--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill your
boss.  Be a data hero!
Try Good Data now for free: www.gooddata.com


More information about the erlang-bugs mailing list