{"id":17569038,"url":"https://github.com/riywo/proctask","last_synced_at":"2025-08-24T15:09:29.083Z","repository":{"id":10055545,"uuid":"12105074","full_name":"riywo/proctask","owner":"riywo","description":"A simple task definition and runner","archived":false,"fork":false,"pushed_at":"2013-08-19T06:47:52.000Z","size":124,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:11:35.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dpmccabe/subscriptions-with-ruby","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riywo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-14T09:26:02.000Z","updated_at":"2016-10-12T05:01:52.000Z","dependencies_parsed_at":"2022-08-17T15:50:43.343Z","dependency_job_id":null,"html_url":"https://github.com/riywo/proctask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Fproctask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Fproctask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Fproctask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Fproctask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riywo","download_url":"https://codeload.github.com/riywo/proctask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251306671,"owners_count":21568312,"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":[],"created_at":"2024-10-21T17:08:43.190Z","updated_at":"2025-04-28T11:41:18.279Z","avatar_url":"https://github.com/riywo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proctask\n\nA simple task definition and runner\n\n## What is proctask?\n\nYou can determine a task using `run`, `env`, `stdin` files and get outputs as `stdout`, `stderr`. `proctask` uses user's login shell, so you can use your own profile, like `rbenv`.\n\n## Usage\n\nLocate `run` in a working directory. Write `env` and `stdin` in the same directory if you need.\n\n    $ ls /path/to/dir\n    env    run    stdin\n\nRun `proctask`. If you omit command line arg, `proctask` runs in your current directory.\n    \n    $ proctask /path/to/dir\n\nThen, you can see `stdout` and `stderr` of the command.\n\n    $ ls /path/to/dir\n    env    run    stderr    stdin    stdout\n\n## Example\n\n    $ cat env\n    FOO=foo\n\n    $ cat stdin\n    aaa\n\n    $ cat run\n    #!/usr/bin/env ruby\n    p gets\n    p ENV[\"FOO\"]\n    STDERR.puts \"Hi!\"\n\n    $ proctask\n    2013/08/18 23:01:39 INFO  load env path: /tmp/work/env\n    2013/08/18 23:01:40 INFO  run cmd: [/bin/bash -l -c /tmp/work/run], env: [FOO=foo USER=riywo HOME=/Users/riywo], dir: /tmp/work\n    hi!\n    2013/08/18 23:01:41 INFO  Command succeeded!\n\n    $ cat stdout\n    \"aaa\\n\"\n    \"foo\"\n\n    $ cat stderr\n    Hi!\n\n## TODO\n\n- stdout rotate\n- stdout size limit\n- stderr timestamp\n- exit code inheritance\n- test\n\n## License\n\nMIT\n\n## Author\n\nRyosuke IWANAGA a.k.a. riywo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friywo%2Fproctask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friywo%2Fproctask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friywo%2Fproctask/lists"}