This repository was archived by the owner on Aug 7, 2023. It is now read-only.
-
|
What's wrong with my following code: const child_process = require("child_process")
let hostname = 'NA'
child_process.exec("hostname -f", function(err, stdout, stderr) {
hostname = stdout.trim()
})I thought my hostname would now contain that from |
Beta Was this translation helpful? Give feedback.
Answered by
lemonyte
Oct 28, 2022
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
suntong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

The
hostnamecommand doesn't exist on the Micro's OS.