i’m trying to move more than one million files from one folder to another using a script but i’m not getting any results i.e no files moved and i did not get any errors,the script checks if they are more than 20 records in a folder and it moves them in another specified folder,here is my script. a…
Tag: linux
How to install the boost through its source?
I use the wget download the boost.1.65.1, but I don’t know how to install it: I have uncompressed it: and I tried to make install it, but failed. Because I cd to boost_1_65_1 then use ./configure –prefix=/usr/local/boost.1.65.1 but says there is no configure: So, how to install the boost? Answer F…
Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output: /sdk/platform-tools/adb:
How to fix out -Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output: /home/dilip/Downloads/sdk/platform-tools/adb: 1: /home/dilip/Downloads/sdk/platform-tools/adb: Syntax error: “)” unexpected I also go to platform tool path and hit adb kill-server a…
How can i add linux bash script file into terraform code?
My requirement is I need to create 3 aws instances using terraform and run a 3 different bash scripts in it. All files are on same server. I already have terraform code to create an infrastructure and 3 bash script ready to use. this is my terraform code to create an AWS instance But i am not sure how i
lm75 kernel module available in userspace
I’m using the lm75 kernel module to interact with a sensor on a custom board. Every things works fine, I have my device mounted in /sys/bus/i2c/devices/5-0048. But I would like to let the user set the max temp hysteresis so in other words let the user write into the temp_max_hyst file. The permission fo…
How can I auto-login with the latest Raspbian Stretch Lite?
I have read many questions regarding this, but none that I have seen had helped me. I want to sign on to an account on boot automatically, for example, username: user; password: password. How can I do this? Answer I made this file: /etc/systemd/system/getty@tty1.service.d/autologin.conf And put this in it: Gi…
KeyError: Python script executed by linux service unable to access environment var
So I have a simple service on my Raspberry Pi that runs a Python script on boot. I have also set the env variable by running export OPSESPORT=XXXX. This is the service file: And in somefile.py, I have: Which leads to the following error when checking logs of the service: This is super weird since if I just ru…
Linux Bash script isnt printing out correctly
GOAL: My goal in this assignment is to create a script that will take in a student id as an input and will output a matching student’s name OR an error message saying there is none by that name in this class. Im fairly new to Linux and it is kinda tough for me but I would love all the
Finding repeated names in a file
Hi i have a txt file with last name and name of people, now i want do use egrep to only display the names of the people with the same last name. I have no idea how i could do this. Thanks for help my txt looks like this: and the output should be: I’ve currently tried running: …but this
How do not write provided characters to bash stdout when program interrupted on getpass?
I have the simple code witch get password by getpass: Also I have a signal handler witch exit program. If signal was caught at the time of getting password from terminal, program stops, but all provided by user characters appears on bash prompt. Code of signal handler: How can I make bash prompt clear after i…