Skip to content
Advertisement

Setup or env variable lost after running bash files

Please excuse me if there is an error in the sample code. There are two files testA.sh and testB.sh. testA.sh testB.sh deepak[18:33] $ ./testA.sh test b hello deepak[18:33] $ echo $a deepak[18:33] $ If we run any setup in the testB.sh then how can we use that setup or env variable in the main console (for example echo $a) Answer

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 lpadmin lxd

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 as well, it stops at this: 2021-05-18-15.41.46.618309+330 E653248E505 LEVEL:

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. Now I want

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 would be getting this

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 paths to the executable apps and

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 distro is kubuntu. Thanks for the help in advance. Answer

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

Advertisement