I have this code: and i want execute this piece of code only while sys.argv[1] is exist: if i only start the program without an arguments (python program.py) it’s print this text: I tried “if sys.argv == 1” but doesnt worked. Any solutions? Thanks Answer Now your program will terminate entirely if the user didn’t supply any arguments, rather than
Tag: sys
New linux kernels, no lsm using lkms, no kernel hooks now what?
For security reasons, the kernel ceased to export characters necessary for writing security modules in the form of loadable kernel modules (Linux Kernel Module, LKM) starting with version 2.6.24. And you can’t export sys_call_table, again for security reasons. But then, how can I filter filesystem requests? I’ll state it simply: I want to hook the “open” function! I don’t want