Skip to content

gpinitsystem unknown host mdw

I am sure that there are no extra spaces before or after your hostname(S) in the host file, and using ssh mdw can connect to mdw. The /etc/hosts is like this: The error log: please. Answer How many hosts there are in your greenplum. Your /etc/hosts doesn’t contain any information about mdw and sdw. Assu…

How to use grep in shell with -e option set

In bash -e option stops executing after an error and grep commands returns a non-zero status in case it does not find for the pattern it is looking for. I want to use grep inside an if statement, something like If i use $? to get the statement of last command, then the execution stops after last command as gr…

Exclude directory when grepping with zsh globbing

I have some file structure which contains projects with build folders at various depths. I’m trying to use zsh (extended) globbing to exclude files in build folders. I tried using the following command and many other variants: grep “string” (^build/)# I’m reading this as “Any fol…

VTK/ITK project Requested modules not available on ubuntu

I would like to configure with cmake-gui a VTK/ITK project on ubuntu with QT and I have this error message. I don’t understand. How I can pass this error ? Answer When configuring VTK with CMake, you need to enable either vtkGUISupportQtOpenGL or VTK_Group_Qt. You can also change that setting now, then …

Renaming long file names in bulk

I have file names like: I want something like: Are there good ways to rename these files in linux? Answer You could try using a loop to extract the important part of the filename: This will simply give you a new list of filenames. You can then move them: To break this down a little: loop over the *.gz files

How to use get_random_bytes() in linux kernel module?

I have made simple kernel module. I printed out rand variable using seq_printf function. cb_funct function is called five times. Below is the result. random number : 66 random number : -5 random number : 135 random number : 178 random number : -42 Why negative variable is printed out? How to use get_random_by…