Replies: 2 comments 1 reply
-
You sure it returns nothing? You have two print statements - one of them should show? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Confirmed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
import os
fn main() {
cmdline := os.read_file('/proc/cmdline') or {
println('Failed to open file')
return
}
println('cmd=$cmdline')
}
This returns nothing... How read system files form /proc/...?
Beta Was this translation helpful? Give feedback.
All reactions