fork download
  1. id
  2.  
  3. python3 << EOF
  4. import getpass; getpass.getuser()
  5. EOF
  6.  
  7. ls -l $HOME
Success #stdin #stdout #stderr 0.04s 9844KB
stdin
Standard input is empty
stdout
uid=20095 gid=1000 groups=1000
total 4
-rw-rw-r-- 1 root root 70 Jul 23 15:30 prog.sh
stderr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/getpass.py", line 170, in getuser
    return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 20095'