How can I use ant to execute commands on linux?

I would like to use ant to exectue a command like below: But it replies an error say The ‘ characters around the executable and arguments are not part of the command. The background is: I want to use ant to stop the apache server but it doesn’t installed by the same user I run … Read more

How to install grub after installing Windows 10

First live boot to your Linux Mint system, using external Live CD/USB Drive, then follow these commands to re-install GRUB on MBR. mount your Linux installed partition to some mount point. here XY is the number of your Linux distro partition.sudo mount <root-partition[e.g. /dev/sdaXY]> <mount-point[e.g. /mnt/]> Now bind some essential live root partition directories to … Read more

Amazon Linux: apt-get: command not found

If you’re using Amazon Linux it’s CentOS-based, which is RedHat-based. RH-based installs use yum not apt-get. Something like yum search httpd should show you the available Apache packages – you likely want yum install httpd24. Note: Amazon Linux 2 has diverged from CentOS since the writing of this answer, but still uses yum.

What is the LD_PRELOAD trick?

If you set LD_PRELOAD to the path of a shared object, that file will be loaded before any other library (including the C runtime, libc.so). So to run ls with your special malloc() implementation, do this:

How to upgrade pip3?

I want to use python3.5 to develop basically, but many times when I install the module for the python 3.5, it always failed. And the terminal told me that higher version is available, it did not work when I upgrade it.

error: lvalue required as unary & operand

The address-operator & requires a variable to take the address from. The result of your cast (long)u32_Time is a temporary that does not necessarily reside in memory and therefore has no address that could be taken. So if that piece of code ever compiled somewhere it was a nonstandard compiler extension. The standard, §5.3.1,3 demands: The result of the … Read more