I have a following bash script: If run it and from other terminal send the SIGINT to it, it does nothing. I am using kill -2 pid where pid is the pid of the running script. If I hit CTRL+C (SIGINT) in terminal where the script is running it kills itself and writes the message. How come, it is not
How to get file creation date/time in Bash/Debian?
I’m using Bash on Debian GNU/Linux 6.0. Is it possible to get the file creation date/time? Not the modification date/time. ls -lh a.txt and stat -c %y a.txt both only give the modification time. Answer Unfortunately your quest won’t be possible in general, as there are only 3 distinct time values …
Ubuntu Python shebang line not working
Unable to get shebang line working in Ubuntu for python script. I only get a command not found error each time. test.py Ran Played around with different locations for python in the shebang but no luck including what was provided by which python. Any tips on how to troubleshoot this? Thanks Answer If you are t…
error=2, No such file or directory at java.lang.ProcessBuilder.start
I’m using Fedora 18 and JDK 1.7.13 installed in /usr/java. All executable files under bin folder have -rwxr-xr-x permission. I set both ANT_HOME and JAVA_HOME in my ~/.bashrc as: and I have a build.xml file which says: but after running ant I got this exception: /home/m/workspace/build.xml:58: Execute f…
How to design GUIs on Linux and C++ [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. I am new to Linux. …
Print md5sum of results of a find command in Linux
I am tryng to do checksum on all .jar files I can find in directory and its sub directories. Then print the filename with the checksum value to a file. this is what I have. I am trying to join two commands together that I know work individually. Any help appreciated. Answer You could use something like this t…
Allocate more than 2GB on the heap using c++ on a 32bit linux kernel
This seems to be a very common problem, but still I haven’t found a definite answer. I have access to a server which runs linux, has 16 GB of RAM and a 16-core (64bit) CPU (/proc/cpuinfo gives “Intel(R) Xeon(R) CPU E5520 @ 2.27GHz”). However, the kernel is 32bit (uname -m gives i686). Of cou…
Generate LLVM C++ API code as backend
The Online LLVM demo page had an option to generate LLVM C++ API code as backend from a source code. However, that demo page is now disabled. I was wondering how we can do it ourselves using the available LLVM tools. I tried the following which gives the following error I am using LLVM/Clang version 3.2. Answ…
how to display linux partitions using python?
I am trying to display partitions of linux using python and i want to do it using APIs. I have just tried the following code to get the output. Answer df command used for – report file system disk space usage I think you required fdisk for Partition table manipulator for Linux. you can use either os.pop…
Buildroot : Which gcc for cross compilation?
I am newbee to buildroot. I can see multiple gccs in buildroot. I assume all are for cross compilation. What are the difference between those ? Answer The one you should use is buildroot-2012.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc. The other ones are purely internals binaries.