Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ルビーでシェルを書いていますが、マシンにログインしているユーザーから IP を取得する方法があるかどうかを知る必要があります。コマンドでそれができることは知っていwhoますが、その出力を変数にフェッチすることはできません。誰かが私にアイデアを与えることができますか?道に迷いました!
who