/* execute a CLI command and put the output on IRC, converting tabs */ tab=d2c(9) parse arg opt ' ' where ' ' cmd if opt="-msg" then output='msg' where else if opt="-out" then do output='say' cmd=where cmd end else do output='echo' cmd=opt where cmd end address command cmd '>PIPE:gvexec' if open(1,'PIPE:gvexec') then do until eof(1) line=readln(1) if ~eof(1) then do l=length(line) do until i=0 i=pos(tab,line) if i>0 then line=left(line,i-1)||right('',9-i//8)||right(line,l-i) end output '>'line end end call close(1) exit