{"id":17720123,"url":"https://github.com/theden/ps-tools","last_synced_at":"2025-03-31T13:16:34.309Z","repository":{"id":83727793,"uuid":"513823234","full_name":"TheDen/ps-tools","owner":"TheDen","description":"Various *nix process tools","archived":false,"fork":false,"pushed_at":"2022-07-16T17:49:00.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-30T01:18:33.027Z","etag":null,"topics":["pid","process","signals","unix-signals"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheDen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-14T08:39:30.000Z","updated_at":"2022-07-14T15:00:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4f6b544-6dab-46db-9138-c78b663c656f","html_url":"https://github.com/TheDen/ps-tools","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/TheDen%2Fps-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fps-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fps-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fps-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDen","download_url":"https://codeload.github.com/TheDen/ps-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246473279,"owners_count":20783236,"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":["pid","process","signals","unix-signals"],"created_at":"2024-10-25T15:26:13.104Z","updated_at":"2025-03-31T13:16:34.279Z","avatar_url":"https://github.com/TheDen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \tps-tools\n\nVarious \\*nix process tools.\n\n# signals.py\n\nTool to test out [IPC signals](https://en.wikipedia.org/wiki/Signal_(IPC)). Program will capture signals and print out the received signal.\n\nFor example, \n\n```bash\n$ ./signals.py\nInterpreter: /opt/homebrew/opt/python@3.9/bin/python3.9\n\nKeyboard combinations for signal inputs:\n     CTRL + c (^C) for SIGINT\n     CTRL + \\ (^\\) for SIGQUIT\n     CTRL + z (^z) for SIGTSTP\n\nTo kill this process, in another shell run: kill -9 74974\n\nList of signals:\n1: SIGHUP\n2: SIGINT\n3: SIGQUIT\n4: SIGILL\n5: SIGTRAP\n6: SIGABRT\n7: SIGEMT\n8: SIGFPE\n9: SIGKILL\n10 SIGBUS\n11 SIGSEGV\n12 SIGSYS\n13 SIGPIPE\n14 SIGALRM\n15 SIGTERM\n16 SIGURG\n17 SIGSTOP\n18 SIGTSTP\n19 SIGCONT\n20 SIGCHLD\n21 SIGTTIN\n22 SIGTTOU\n23 SIGIO\n24 SIGXCPU\n25 SIGXFSZ\n26 SIGVTALRM\n27 SIGPROF\n28 SIGWINCH\n29 SIGINFO\n30 SIGUSR1\n31 SIGUSR2\n```\n\n\nNote that `SIGSTOP` and `SIGKILL` cannot be captured\n\n\n# pid_watch.py\n\nTool to watch processes until they die. Takes one or more PIDs as arguments, and will exit when the processes end. \n\n```bash\n$ ./pid_watch.py -h\nusage: pid_watch.py [-h] Process ID [Process ID ...]\n\nWatch process IDs\n\npositional arguments:\n  Process ID  Process IDs\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\n\nFor example, \n\n```bash\n$ ./pid_watch.py 94352 95133\nwatching PID: 94352\nwatching PID: 95133\nPID ended: 94352\nPID ended: 95133\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fps-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheden%2Fps-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fps-tools/lists"}