https://github.com/adeelh/remote-task-manager
CLI app that allows clients to execute programs on a remote computer. Supports multiple concurrent clients. (class project for Systems Programming, Spring 2016)
https://github.com/adeelh/remote-task-manager
c client-server multiplexed-io multiprocessing remote-execution system-programming
Last synced: about 1 year ago
JSON representation
CLI app that allows clients to execute programs on a remote computer. Supports multiple concurrent clients. (class project for Systems Programming, Spring 2016)
- Host: GitHub
- URL: https://github.com/adeelh/remote-task-manager
- Owner: AdeelH
- License: mit
- Created: 2017-05-06T14:46:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-07T07:24:39.000Z (about 9 years ago)
- Last Synced: 2025-01-30T14:34:48.386Z (over 1 year ago)
- Topics: c, client-server, multiplexed-io, multiprocessing, remote-execution, system-programming
- Language: C
- Homepage:
- Size: 132 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Description
A commandline app that allows clients to execute programs on a remote computer. Supports multiple concurrent clients.
# Commands
## Client
```Shell
# Connect to the server.
> conn[ect]
# Close the Task Manager and the socket. Keep the client running.
> disconnect
```
## Client -> Task Manager
```Shell
# Sleep for seconds. (Can be used to check the non-blocking behavior of the client).
> sleep
# Start instances of the program.
[run] []
# List alive processes.
> list
# List all alive or dead processes started through the Task Manager.
> list all
# List all alive or dead processes started through the Task Manager,
# along with their start, end, and the elapsed times.
> list details
# Kill process by pid or name
> kill [ | ]
# Kill all processes
> kill [all | *]
# Add, subtract, multiply or divide.
> add [ [ …]]
> sub [ [ …]]
> mul [ [ …]]
> div [ [ …]]
# Exit the Task Manager.
> exit | ex | quit | q | disconnect
```
## Client -> Task Manager -> Server
```Shell
# Message shows up on the server terminal.
> msg
```
## Server
```Shell
# List currently connected clients.
> list
# Disconnect this particular client.
> disconnect :
# Disconnect all clients.
> disconnect all
# Disconnect any connected clients and exit.
> exit | ex | quit | q
```
## Server -> Task Manager -> Client
```Shell
# Message shows up each client’s terminal.
> broadcast
# Send command to this client’s Task Manager and receive the output.
> cl :
```