{"id":16935387,"url":"https://github.com/codeskyblue/fire","last_synced_at":"2025-03-21T04:27:05.208Z","repository":{"id":10733486,"uuid":"12987993","full_name":"codeskyblue/fire","owner":"codeskyblue","description":"a new project that will replace jetfire","archived":false,"fork":false,"pushed_at":"2014-01-08T08:38:59.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T01:18:09.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"os2sd/android_packages_apps_Settings","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeskyblue.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-09-21T02:15:15.000Z","updated_at":"2014-07-24T03:46:36.000Z","dependencies_parsed_at":"2022-08-27T21:02:11.435Z","dependency_job_id":null,"html_url":"https://github.com/codeskyblue/fire","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/codeskyblue%2Ffire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Ffire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Ffire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Ffire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeskyblue","download_url":"https://codeload.github.com/codeskyblue/fire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244736086,"owners_count":20501411,"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-13T20:54:23.515Z","updated_at":"2025-03-21T04:27:05.187Z","avatar_url":"https://github.com/codeskyblue.png","language":"Go","readme":"## fire\nThis is a remote execute tools, function like sshd+ssh but offers some **interesting** function.\n\nincluding \n\n* set timeout to a process.\n* view which program are running.\n* kill program which are just running.\n* a simple file server inside\n\nUse `fire -d` to start a daemon server, and use `fire -H host ...` to tell daemon server to run commands.\n\n## How to use \n*step by step tutorial*\n\n### simple *hello world*\n1. `fire -d --port=8119` to start a daemon server\n2. `fire -m run echo hello world`, if you see hello world, then that's everything goes well.\n\n### show running program\n1. `fire -m ps` and will see output like this(ID maybe different).\n\n```\nID                   TIME       CMD        RUNNING\n5tb2zu1a34           10:35:44   echo       false\n```\n\n### start a long running program\n1. `JOB_ID=$(fire -b sh -c \"while true; do sleep 1s \u0026\u0026 echo hello; done\")`, use -b to start program in background.\n2. var $JOB_ID specify the running program.\n3. `fire -m ps` will see program is still running.\n\n```\nID                   TIME       CMD        RUNNING\n72c7tni2gl           10:43:19   sh         true\n5tb2zu1a34           10:35:44   echo       false\n```\n\n4. `fire -m kill 72`, to kill program. (NOTICE, you just need to use the prefix of ID)\n\n### a complex usage\n```\n#\n# connect to example1.com and start a program, with timeout 2s\n#\nJOB_ID=`fire -H example1.com -t 2s -b sh -c \"echo start; sleep 5s; echo done\"`\n#\n# wait program exit\n#\nfire -m wait $JOB_ID\n```\n\n### help usage\n    fire [OPTIONS] args ...\n\n    Help Options:\n      -h, --help=        Show this help message\n\n    Type:\n      -m, --type=        type [run|ps|wait] (run)\n\n    Run:\n      -H, --host=        host to connect (localhost)\n      -t, --timeout=     time out [s|m|h] (0s)\n      -b, --background   run in background\n      -e, --env=         add env to runner,multi support. eg -e PATH=/bin -e TMPDIR=/tmp\n          --dialtimeout= dial timeout,unit seconds (2s)\n\n    Serve:\n      -d, --daemon       run as server (false)\n      -p, --port=        port to connect or server\n          --fs=          open a http file server (/tmp/:/home/)\n          \n\n### unknown problem\nBUG(ssx): heartbeat: When open heartbeat. When the target machine dies. fire -d quit. Don't know why.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Ffire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeskyblue%2Ffire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Ffire/lists"}