Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is acme's file interface located? #657

Closed
a12l opened this issue Jun 20, 2024 · 2 comments
Closed

Where is acme's file interface located? #657

a12l opened this issue Jun 20, 2024 · 2 comments

Comments

@a12l
Copy link

a12l commented Jun 20, 2024

I'm wondering where in the file system acme's file interface is located. I've looked at /; /dev/; /run/; and /mnt/, and nowhere can I find anything named acme. I've looked while having acme running in another window. Where is acme's file interface?

I've looked at acme(1), acme(4), searched using Kagi. Haven't found anything. From Russ Cox video it looks like it's just there. If the info is in the man pages I haven't been able to understand it.

I installed p9p a couple of days ago, and this is my first foray into Plan9, so it's very possible that I don't understand terms. For example, just learned that "Snarf" is the acme/plan9 word for copy.

I've p9p installed both on both my NixOS 24.05 system and on Ubuntu 22.04 running in WSL2. Installed p2p from Nixpkgs on NixOS (2023-03-31), and compiled it myself on WSL (HEAD).

@rakoo
Copy link

rakoo commented Jun 20, 2024

If you have plan9port you have namespace:

$ namespace
/tmp/ns.something.:0

This is where all 9p connections will store their socket. If you start plumber you'll also see it there:

$ ls $(namespace)
acme=
plumb=

If you remain on plan9 tools, you might not actually need that. you can use 9p to list/read/files in your scripts/applications. For instance to read the content of the first window in acme:

$ 9p read acme/1/data

The only case you might need the path is if you want to mount it, in that case all you need to remember is that namespace gives the full path so:

$ 9 mount $(namespace)/acme ~/acme

is enough

@a12l
Copy link
Author

a12l commented Jun 20, 2024

Thank you @rakoo! Works perfectly!

@a12l a12l closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants