{"id":13579535,"url":"https://github.com/daurnimator/lua-spawn","last_synced_at":"2025-04-15T23:46:59.567Z","repository":{"id":32225240,"uuid":"35799252","full_name":"daurnimator/lua-spawn","owner":"daurnimator","description":"A lua library to spawn programs","archived":false,"fork":false,"pushed_at":"2022-05-12T15:03:50.000Z","size":234,"stargazers_count":27,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T02:51:26.886Z","etag":null,"topics":["execute","lua","process","run","spawn","start"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daurnimator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-18T05:49:36.000Z","updated_at":"2025-01-15T01:04:23.000Z","dependencies_parsed_at":"2022-09-08T11:21:42.484Z","dependency_job_id":null,"html_url":"https://github.com/daurnimator/lua-spawn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-spawn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-spawn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-spawn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-spawn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daurnimator","download_url":"https://codeload.github.com/daurnimator/lua-spawn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173060,"owners_count":21224481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["execute","lua","process","run","spawn","start"],"created_at":"2024-08-01T15:01:40.315Z","updated_at":"2025-04-15T23:46:59.553Z","avatar_url":"https://github.com/daurnimator.png","language":"C","readme":"A lua library to spawn programs\n\n## Status\n\n[![Build Status](https://travis-ci.org/daurnimator/lua-spawn.svg)](https://travis-ci.org/daurnimator/lua-spawn)\n\n\n## Features\n\n  - High level functions for common cases\n  - Bindings to the full `posix_spawn` family of functions\n  - Compatible with Lua 5.1, 5.2, 5.3 and [LuaJIT](http://luajit.org/)\n\nCurrently only works on POSIXy systems, but the high level module should be portable to Windows; someone just needs to put the work in.\n\n\n## Installation\n\nIt's recommended to install lua-spawn by using [luarocks](https://luarocks.org/).\nThis will automatically install run-time lua dependencies for you.\n\n    $ luarocks install spawn\n\n\n## Rationale\n\nSpawning a new child program from a lua script is surprisingly hard.\n\nExisting solutions:\n\n  - [`os.execute`](http://www.lua.org/manual/5.3/manual.html#pdf-os.execute) doesn't allow interaction with any file descriptors\n  - [`io.popen`](http://www.lua.org/manual/5.3/manual.html#pdf-io.popen) only allows interaction with *one of* `stdin` or `stdout`\n  - `fork` + `exec` isn't portable to non-MMU or non-unix architectures\n\nThis project uses the [`posix_spawn`](http://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawn.html) family of functions.\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Flua-spawn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaurnimator%2Flua-spawn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Flua-spawn/lists"}