Skip to content

andrewchambers/janet-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

janet-process

A janet module for running child processes.

Quick example

(import process)

(def redis-process 
  (process/spawn ["redis-server"] :redirects [[stderr stdout] [stdout (file/open "out.log" :wb)]]))

(process/signal redis-process :SIGTERM)

(process/wait redis-process)

(def buf (buffer/new 0))
(process/run ["echo" "hello"] :redirects [[stdout buf] [stderr :null]])

Usage notes

  • Processes are sent a configurable terminate signal and waited when the process object is garbage collected.
  • Processes can be used in 'with' blocks.

About

A janet module for dealing with processes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages