I have installed Vmware teradata player TDExpress14.10_Sles11_40GB on Ubuntu. I am getting “DBS state is 7: System is operational without PEs – Sessions are not allowed” when using “pdestate -a”; I found some solutions related with vproc manager like; http://teradata-suresh.blogs…
C code to access environment variables
I created an environment variable SHELLCODE which contains a 200-byte long NOP sled and a shellcode. It is stored at 0x7fffffffe285, but I’ll try to access 0x7fffffffe2e5, which is around the middle of the NOP sled. Then I wrote the following code to try to access the variable. I used gdb to see the mem…
Fast way to grep gzipped files in reverse piped to tail/head
I need to search a folder of gzipped files for a string, however I need to search starting at the bottom of each file. I then need the command to return results when it has 10 matches. So far I have this: I’m using zcat to get all the file contents, and then I use tac to reverse them. This
Bash select multiple values in CSV column
I have the following CSV format: “/opt=920MB;4512;4917;0;4855″,”/=4244MB;5723;6041;0;6359″,”/tmp=408MB;998;1053;0;1109″,”/var=789MB;1673;1766;0;1859″,”/boot=53MB;656;692;0;729” I would like to extract 2 values from each column, the first and the last…
Copying multiple text lines into a file after specified pattern using shell [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago. Improve this question I want to insert multiple line from file1 marked with pattern into a file2 using shell. The …
Attempt to re-bind an already closed listening socket is failing (EADDRINUSE)?
The following is the essence of my test fixture – In the normal use of the application the listening socket is bound only once during the lifetime of the application, however the test setup repeatedly opens and closes the listening socket. The first iteration of the testcase works fine but subsequent it…
Passing Variable Length C String Through Mmap-ed Shared Memory
Let’s say I have a process A and a process B, and process A would like to pass a C string to process B through a shm_open() + mmap() shared memory. What’s the most latency efficient way? The answer of this post suggested that after C++11, std::atomic is the right way to share data over shared memo…
Can ‘sed’ do ‘or’ class trimming?
I am working with a piece of code but it’s ugly. It has a nasty line in it along the lines of: If any of BE2, RS, etc. are found then it will replaced with Alpha Beta Gamma COM/DLX/BE4/BE2/RS. However, if all three are found then each one will be replaced. Since the ideal output would be: is there anywa…
Adapting “module” alias (invoking modulecmd) from tcsh to bash
In tcsh, I can run commands like: …using an alias defined as such: I’m trying to get an equivalent to this for bash. Currently, I’ve tried making a separate bash function for each subcommand, like so: I can be sure the program calls have been executed, since the unexisting module (added by p…
Does maven shade plugin automatically downcase the package names on Windows?
I have two local artifacts: one with com.org.abc, another with COM.org.xyz. I have created a shaded jar including these 2 and all the other needed dependencies. WHEN I CREATE A SHADED JAR ON LINUX, 2 SEPARATE FOLDERS ARE CREATED : com and COM. BUT ON WINDOWS ONLY SINGLE FOLDER IS CREATED. When I create a shad…