Daisy123 Posted November 8, 2019 Share Posted November 8, 2019 Hi. I am doing script with need access file /proc/pid/maps to get some information. I use this code local pid = gg.getTargetInfo().pid local file = string.format("%s%d%s", "/proc/",pid, "/maps") local inp=io.open(file, 'r') and when I execute script I got this error: io error: /proc/3811/maps:open failed: EPERM(Operation not permitted) I run this script in root devices. Can you explain me why this can not work in root devices? And are there any solution? Thank you very much. Link to comment Share on other sites More sharing options...
CmP Posted November 8, 2019 Share Posted November 8, 2019 On 1/9/2018 at 6:11 AM, Enyby said: Script not work as root. Only as user for gg app. LUA scripting (#2leg8442) Link to comment Share on other sites More sharing options...
Daisy123 Posted November 8, 2019 Author Share Posted November 8, 2019 thank you. 33 minutes ago, CmP said: LUA scripting (#2leg8442) Link to comment Share on other sites More sharing options...
Question
Daisy123
Hi. I am doing script with need access file /proc/pid/maps to get some information. I use this code
local pid = gg.getTargetInfo().pid
local file = string.format("%s%d%s", "/proc/",pid, "/maps")
local inp=io.open(file, 'r')
and when I execute script I got this error: io error: /proc/3811/maps:open failed: EPERM(Operation not permitted)
I run this script in root devices. Can you explain me why this can not work in root devices? And are there any solution? Thank you very much.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.