{"id":13772427,"url":"https://github.com/astares/Pharo-OS-Unix","last_synced_at":"2025-05-11T04:31:22.948Z","repository":{"id":78113863,"uuid":"139682372","full_name":"astares/Pharo-OS-Unix","owner":"astares","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-21T12:17:33.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T14:43:15.248Z","etag":null,"topics":["pharo"],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","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/astares.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-04T07:05:44.000Z","updated_at":"2023-08-18T12:31:00.000Z","dependencies_parsed_at":"2024-08-03T17:16:04.925Z","dependency_job_id":null,"html_url":"https://github.com/astares/Pharo-OS-Unix","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/astares%2FPharo-OS-Unix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FPharo-OS-Unix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FPharo-OS-Unix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FPharo-OS-Unix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astares","download_url":"https://codeload.github.com/astares/Pharo-OS-Unix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"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":["pharo"],"created_at":"2024-08-03T17:01:03.891Z","updated_at":"2025-05-11T04:31:20.489Z","avatar_url":"https://github.com/astares.png","language":"Smalltalk","funding_links":[],"categories":["System interaction"],"sub_categories":[],"readme":"# Pharo-OS-Unix\n\n## Introduction \n\nThis is a Pharo package written by Torsten Bergmann (astares) to get better support for Unix systems into Pharo.\n\n[![Unit Tests](https://github.com/astares/Pharo-OS-Unix/workflows/Build/badge.svg?branch=master)](https://github.com/astares/Pharo-OS-Unix/actions?query=workflow%3Build)\n[![Coverage Status](https://codecov.io/github/astares/Pharo-OS-Unix/coverage.svg?branch=master)](https://codecov.io/gh/astares/Pharo-OS-Unix/branch/master)\n\n[![Pharo 7](https://img.shields.io/badge/Pharo-7.0-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 8](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 9](https://img.shields.io/badge/Pharo-9.0-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 10](https://img.shields.io/badge/Pharo-10-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)\n\n# Quick Start\n## Installation\n\n```Smalltalk\nMetacello new \n\trepository: 'github://astares/Pharo-OS-Unix/src';\n\tbaseline: 'OSUnix';\n\tload\n```\n\n\nThe package can be loaded from Pharo catalog. Just open the Catalog and search for \"OSUnix\". It is useful to use this package with Pharo on Unix including Linux derivates and Mac.\n\n## Documentation\n\nAfter loading the package you have several classes that you can use like **UNIXEnvironment** or **UNIXProcess** \n\n### Working with external UNIX commands\n\nWith the help of the **UNIXProcess** class you have access to external commands. For example inspect the result of the following command.\n\n```Smalltalk\nUNIXProcess resultOfCommand: 'ls'\n```\n\nSometimes it is useful to run a command with super user rights. So while\n\n```Smalltalk\nUNIXProcess resultOfCommand: 'whoami'\n```\n  \nwould run with the regular user rights of the Pharo process owner (and return the current user) you can use\nthe method *#resultOfCommand:whenRunningAsRootUsingPassword:* to run a process with administrative rights:\n\n```Smalltalk\nUNIXProcess resultOfCommand: 'whoami' whenRunningAsRootUsingPassword: 'myrootpassword'\n```\n\nThis should give you the 'root'.\n\n### Working with UNIX user management\n\nWithin the *OS-Unix-Environment* package you will find classes to help with the Unix security.\n\n```Smalltalk\nUNIXUser allUsers\n```  \n\nor\n\n```Smalltalk\nUNIXGroup allGroups\n```\n\n### Browsing UNIX man pages in Pharo\n\nWhen the package is loaded it is possible to open the Pharo spotter and enter a unix command. If there is a UNIX man page then Pharo will display it and you can directly show it within the Pharo environment.\n\n# History\n\nMigrated from http://smalltalkhub.com/#!/~OS/OS-Unix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastares%2FPharo-OS-Unix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastares%2FPharo-OS-Unix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastares%2FPharo-OS-Unix/lists"}