Skip to content

Tag: linux

Change ownership and permission without terminal – Python

I have a gui made in glade and am stuck on one thing. I have a button that changes the ownership and permissions; it works fine except for folders and files owned by root. Is there anyway of invoking root privilages to run this command without having to input the root password in terminal? i.e. either predefi…

using nohup -> output to file and console

iam using nohup in my project. Is there a possibility get the Output of the program to the console and to the file at the same time while using nohup? With “tee”i had no sucess: thanks for help Answer Try this to run and log the output in file. If you want to run it in background:

qt run shell commands via qprocess

I am developing a small QT application to interact with the terminal, to send commands to the terminal and to read back information printed out. Example: get output of all processes using ps -aux PROBLEM I am able to write information out to the terminal but I dont think it is in the system scope, actual exam…

How do I find which user installed a package in linux?

Is there a way to find out which user installed a package in linux? Answer Usually packets are installed by the superuser (root) account. In case users use sudo to install them, you can check ~/.bash_history for each user tu inspect who issued the $ sudo apt-get install PACKAGE (in case you’re using apt…

How to implement a process overseeing another process?

Currently at my workplace I have a script named “batch launcher” (written in bash), which is supposed to oversee the execution of batches, logging their output and processing the return code of the batch. This is currently done via env call within this “batch launcher”: Several days ag…