I am trying to run the following python script named test.py. It contains multiple bash commands which I would like to execute in a Linux terminal (unix). This is the content of the file: I am running the Python script using the following in the terminal: The problem that I have is that the commands do not ru…
Tag: linux
Bash/xargs: How to mass assign user privileges?
I have created a new user. My current user obviously has the following rights: Where max is the name of the current user account. I tried paramer expansion but the output of ${groups} is empty, so I just piped groups to xargs I get the error message that there is no folder max adm cdrom sudo dip plugdev lpadm…
DB2 Create Database takes long time
I’m new to Db2 and just installed v11.5 on my Ubuntu 18.04. I referred these two links for setup purpose: IBM and DCON I’m using DB2 CLI to create a database. On typing in create database <database_name> and press enter, it just stays there; there’s no output. I checked the db2diag.log…
What is the Windows equivalent of `{} +` in Linux Shell?
I’m trying to make a simple batch file to compile some code and I can’t for the life of me figure out or find any information on how to do this. On Linux, I’m doing this: This basically finds all the files in ./bin-int/ with the extension .o, and use them as the input variable for the comman…
How to redirect the output from desktop-entry
I have a program called prg.exe written in C#. I want to run this program in mono with an argument (arg1) and redirect the output to a log file called log.txt. If I open a terminal and enter the command: everything works fine. When the program is finished, the log.txt file is created, which contains any error…
why python show file not found error during run time?
I am write a code for collage maker using python and place 2 picture in same folder in which code file exist but when I run a code this error shown: FileNotFoundError: [Errno 2] No such file or directory: ‘background.jpg’ and my line of code is: My Question is how I handle this error? Answer You w…
How to open apps from bash (Linux)
Automate part of your life where you can! (It doesn’t seem to be working properly…). This time is for opening multiple apps on my desktop while I make my morning coffee. I created a .sh to open my workspace apps like Visual Code, Slack, Firefox, etc. The script is basically: I basically found the …
Android device emulator on linux connectivity issue
I decided recently to try Linux for mobile development, but the emulator does not have an Internet connection (everything is fine on Windows). Tried changing resolv.config – it doesn’t help (although I may be doing something wrong). For the Internet, I use a mobile hotspot via Galaxy s21. My Linux…
Setup Node.JS Server on Ubuntu
I am using the MEAN Stack and I could run my frontend already. After ng build I moved all the content in the dist folder to var/www/html and could access my website. I’m using Apache and my frontend is now available online. The problem is now my backend. I am using Node.js but I have no clue how I can
Yocto – ERROR: Layer directory ” does not exist
I am very new to Yocto. The aim is to customize a build for a particular embedded device. I am using Ubuntu 18.04 as the build host. An SDK has already been provided for the device with all the Yocto layers etc. which I cloned, and now following instructions. When I get to the stage to actually run the build