Skip to content

Tag: linux

ssh -X oracle is not working properly

I run the following command to switch to oracle user on linux. This is suppose to set environmental variable DISPLAY. I ran xclock command but it throws the following error How should i set environmental variable DISPLAY correctly to run GUI application? Answer You may have logged in as Oracle with -l option,…

How to group by two fields using bash scripting?

Here is one example of one line of log: I know how to group by one filed, so this is the solution: and this would be results: My question is that how can I group by two fields instead of one, first should be $11 and second is $10? So results should change to: Answer how can I group by

POSIX timer hangs up after a few runs

I have created a POSIX timer in the main function of my program. Each thread of the main program is setting the timer so that on expiry of it, the signal handler update one variable which awakes the next thread of the same process. The timer is working fine most of the time but not always. It sometimes comple…

Converting User Input Hexadecimal to Decimal in Assembly

I am trying to create an assembly program that takes a user input hexadecimal number no greater than 4 digits and outputs the same number in base 10. This is being done using NASM on a Linux install. Using some tutorials I’ve found and my very limited understanding of this language, I have come up with …

Getting unexpected newline error while doing awk

I am running the following script in linux command line: I am getting the following error: I believe the quotes and spaces are consistent, but why am i still getting this error? Output of ps -ef | grep “java -Droute=full” Answer The actual problem you’re trying to solve is something like &#8…