RUNAT(1)
β¨ NAME β¨
okay so this is RUNAT(1) from the General Commands Manual, and it's all about runat β literally run a shell command on a named attribute directory π«Ά
πΈ SYNOPSIS πΈ
runat [file] [shell command]
π¦ DESCRIPTION π¦
bestie, runat runs the shell command on the named attribute directory for the file argument. It does a fchdir(2) system call to change the current working directory into the named attribute directory for the file argument, and then it performs the shell command via sh(1) β¨
If a named attribute directory does not exist for file, an empty one will be created. π«Ά
If an application needs to determine if a named attribute exists for the file, pathconf(2) with the name _PC_HAS_NAMEDATTR may be used. And this is important: this will not create an empty named attribute directory if one does not exist for file. π
π EXAMPLES π
for a file called βmyfileβ, it's giving:
$ runat myfile ls -l # lists the attributes for myfile
$ runat myfile cp /etc/hosts attrhosts # creates attrhosts
$ runat myfile cat attrhosts # displays contents of attrhosts
π₯ SEE ALSO π₯
sh(1), fchdir(2), pathconf(2), open(2), named_attribute(7) β go read them, iykyk π
β HISTORY β
The runat utility first appeared in FreeBSD 15.0. periodt π
k bye bestie β this page is from Debian, dated April 15, 2025 ππ
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π the page's license: BSD-2-Clause
- Copyright (c) 2025 Rick Macklem
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms