Proc: Subprocess management library for Ring

28 views
Skip to first unread message

Youssef Saeed

unread,
Jan 15, 2026, 1:48:39 PMJan 15
to The Ring Programming Language
Hello everyone,

I'm excited to share the release of Proc—a cross-platform subprocess library for Ring!

Proc makes it easy to spawn child processes, redirect I/O, and execute shell commands on Windows, Linux, macOS and FreeBSD. It features both a simple functional API and a clean OOP interface.

Key Features:
  • Cross-Platform: Consistent behavior across all major OSs.
  • Full I/O Control: easily read/write to stdin, stdout, and stderr.
  • Flexible API: Use high-level helpers like `proc_shell()` or the robust `Process` class.
Code Example:

load "proc.ring"

# 1. Simple Shell Command
? proc_shell("echo Hello World!")[2]

# 2. OOP Interface
shell = new Shell
if shell.success("git status")
    ? shell.capture("git log -1")
ok

Installation:

ringpm install proc from ysdragon

Learn More:Contributions and feedback are welcome!

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 15, 2026, 3:41:43 PMJan 15
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

Thank you for this useful library!

I tested all the samples in UsingProc folder. They all work except first section of sample 5:
image.png
it raises this error:
image.png


Note that git is installed and reachable in the system path.

The second example about python works fine.

All the best,
Mansour


--

---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/b2a50911-d34e-4bb8-8c84-2386407ab4f5n%40googlegroups.com.

Youssef Saeed

unread,
Jan 15, 2026, 5:09:31 PMJan 15
to The Ring Programming Language
Hello Mansour,

> Thank you for this useful library!

Thank you for your kind words!

I tested all the samples in UsingProc folder. They all work except first section of sample 5 

Thank you for your report!

I have tested the samples in the UsingProc folder again on Windows. Everything is working perfectly on my end, so the issue might be related to your specific environment.

image.png

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 15, 2026, 6:03:00 PMJan 15
to Youssef Saeed, The Ring Programming Language
Hello Youssed,

I'll double-check it and let you know...

Thanks.

Reply all
Reply to author
Forward
0 new messages