After AD Admin added a SQL server SPN using the setspn tool, the linux server is not able to use the SPN using MS SQL Server ODBC Driver 18 with error “[HY000] [Microsoft][ODBC Driver 18 for SQL Server]SSPI Provider: Server not found in Kerberos database” I have a working kerberos based authentication to one server (dev), and I am trying
Tag: linux
How to use SIGALARM in rust?
I have a problem using alarm from nix library in rust. I am trying to communicate two child process with alarms, the exercise consist in send a signal to child process to other every two seconds, and retun it with pipe. When I run the code it still waiting and I can’t see the message. This is my code: Thanks!!!
Writing multiple lines to columns instead
I have an error report that contains lots of phone numbers, I need to see if any of this data exists in our database. Data required – Telephone number – Routing Code – Customer ID I’m using APIs that gather data from various sources. The first request is to use the telephone number we already know to grab the same
Removing leading 0 from third column
I’m trying to remove the first 0 from the third column in my CSV file tel.csv – I have been trying to use the following with no luck – Answer Something like: Or awk
cat command not working as expected using ssh
I am creating a yaml file in GitHub Actions to install softwares on Linux servers created using terraform. Using the pipeline i am able to ssh into the linux servers. In one of the servers i am creating a .ssh directory and an id_rsa file (which contains the private key of the other server) which i intend to use to
How does the host name resolution of anyname.localhost resolves to IPv6 ::1 address?
In an Ubuntu 20 or 22 LTS, if I attempt to use a hostname like anyname.localhost it always seems to resolve to IPv6 ::1 address. In an old RHEL 6, if I attempt to use a hostname like anyname.localhost it always seems to resolve to IPv4 127.0.0.1 address. In a MS-Windows or MacOS 12.6 machine, this does not seem to
parsing ethtool command output using sed and awk
I am working on a shell script to parse the advertised mode and supported mode from the ethtool command and match them against an expected value. The idea is both expected and supported modes should have a common value to pass the condition. Data: I have currently used the below for the same. The above code is giving the correct
insert a line with file which has sed command in linux
I am trying to insert line in a file which will have a sed command to insert a line in another file Like below for eg : want to add this line sed -i ‘1s/^/insideFilen/’ secondFile.sh to 65th line of firstfile.txt I tried: but not able to escape the ‘ also tried but got sed: -e expression #1, char 18:
If condition is failing in the GitLab CI
following is my Gitlab CI code:- I’m trying to validate the JIRA status by calling its API after retrieving Jira id from title of Merge Request. There is a problem in the If condition below if [[ “$JIRA_STATUS” == “^(Done|Completed|Closed)$” ]] as it is not validating it properly. Every time, the else condition is getting executed and printing the message
Need help in regular expression using sed
I have following code:- The code works. When the status is one of the among (done, completed or closed) then it prints “Found valid Jira”. I want the “Not In” condition of it i.e. whenever the status comes out to be any of these then it should say “Found valid Jira”. Jira details response that I get is as follows:-