[英]get the mac address of the current machine with node.js using getmac
[英]Get the current shell using Node.js
我如何找到運行當前Node.js進程的用戶外殼( bash
, zsh
等)?
是否可以在不運行子進程的情況下找到它(例如,像這樣)?
ps -p $$
process.env.SHELL
應該為您提供用戶外殼程序的路徑。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.