Skip to content

Tag: linux

Issue finding the process id from shell scipt

mySample.sh The above command is printing and killing the temporary process that was created for grep Even though i do not have any process running with Abcd, This is printing pid Any ways to ignore it, iam actually ignoring it using grep -v, still… Any Issue in fetching the process id.? Basic command l…

Reshuffling of specific structure file with bash script [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question I would appreciate your advice on how to deal with the following problem u…

bash does not get root permissions with setuid program

I have the following home-grown implementation of su: To allow for proper execution, the permissions and ownership information are set accordingly: When I invoke a shell, such as /bin/sh, I am able to modify root-owned files and directories: However, /bin/bash doesn’t seem to get root permissions: Answe…

rdesktop request without gui linux

Can I make rdesktop request without installed x-server? Just send RDP request from linux (Centos 6) server to windows server? When I run: the error appears: Solve the problem with install xserver, and freerdp may be it helps someone (centos 6): Answer Yes, you have several options: Use a client that render ov…

Cross-compilation of cgo (for darwin) fails

I am fairly new to go and even Linux in general. I have built an app in a Linux environment which makes use of a gtk lib based on cgo (https://github.com/mattn/go-gtk/). The application builds fine in its native environment (linux 64bit) but when I try to compile for darwin 64bit I get the following result: T…