Jump to content
Sign in to follow this  
Daisy123

open a file in directory /proc/pid/.

Recommended Posts

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.

Share this post


Link to post
Share on other sites

On 1/9/2018 at 6:11 AM, Enyby said:

Script not work as root. Only as user for gg app.

LUA scripting (#2leg8442)

Edited by CmP

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...