Kill Jenkins job and all its children immediately

I am trying to find a way to kill a Jenkins job and all its children immediately. Is there a such a way to do this in Jenkins? Initially I was looking at finding a process group and killing it: kill -TERM -- -.... But ps is not returning anything...
more »

2017-04-17 21:04 (1) Answers

Protect file from system modifications

I am working on a linux computer which is locked down and used in kiosk mode to run only one application. This computer cannot be updated or modified by the user. When the computer crashes or freezes the OS rebuilds or modifies the ld-2.5.so file. ...
more »

2017-04-17 20:04 (1) Answers

How to secure ajax content

I was on almaconnect.com, on home page there is a textbox which auto-suggest some results of universities when you type (load content by making an ajax call). I did make a curl request of same ajax call but request resulted in some encrypted lines on...
more »

2017-04-17 09:04 (4) Answers

test_venv failed Python 3.6.1 install

I've just installed Linux Mint 18.1 (so I'm new to Linux and I don't know what I'm doing!) and I'm attempting to install Python 3.6.1. However, one of the install tests keeps failing--test_venv. Here's the log: running build running build_ext INFO: ...
more »

2017-04-16 21:04 (1) Answers

File system: Kernel calls vs. Caching

I would like to write a file manager for educational purposes. I'm planning to split the software to a backend and a frontend. The backend would do file system caching like this: User double-clicks the directory /foo/bar in the frontend Backend r...
more »

2017-04-16 15:04 (1) Answers

How to convert the input from /dev/input/eventX?

I would like to read the touchpad input from /dev/input/eventX. Although many questions ( Get mouse deltas using Python! (in Linux) ) answer how to do so, they do not quite answer how to convert the data obtained into integer form. It is not obviou...
more »

2017-04-16 12:04 (0) Answers

Remove backslashes with sed command in a file

I have a file like this: 'AAA' 'a\\\\b\\\\a\\' 'BBB' 'q\\l\\s\\' ... And I want to replace all occurrences of \\\\ with \\. I tried this sed command: sed 's/\\//g' but this removes all \. This is my output: 'AAA' 'aba' 'BBB' 'qls' The outp...
more »

2017-04-15 20:04 (3) Answers

Curl and Postman giving different response?

I am writing API in node.js. url http://localhost:8000/api/request?connId=19&timeout=8000 when I call above API from Postman then it takes 8 seconds to give the response. same as expected. but when call this from curl it gives output instantly...
more »

2017-04-15 07:04 (1) Answers

SVN access configuration

I have inherited a Fedora 17 server that is used to host Subversion repositories. I thought it was configured with very limited access, but some tests today reveal that there is no access control at all, universal RW, oops. Here is some info from t...
more »

2017-04-14 20:04 (0) Answers

Interprocess communication via Pipes

It is known that during Interprocess Communication in Linux, the processes communicate with each other through a special file named as "Pipe". It is also known that the the operations performed on that file is write by one process and read by one pr...
more »

2017-04-14 15:04 (1) Answers

How to use functions in bash?

I have a file which has hashes of the files against their filename. For example, fb7e0a4408e46fd5573ffb9e73aec021a9dcf426235c0ccfc37d2f5e09a68a23 /path/to/some/file 237e0a4408e46fe3573f239e73aec021a9dcf426235c023fc37d2f5e09a68a12 /path/to/another/fi...
more »

2017-04-14 14:04 (3) Answers

Linux pip package installation error

I am using python 2.7 and trying to install scrapy using pip but get this: Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File...
more »

2017-04-13 21:04 (2) Answers

Python's daemon PPID not equal to 1

Creating daemons in Linux is quite complex issue, but it's very well documented in daemon(7) manual. Thankfully there is python-daemon module for Python 2 and 3 that implement PEP3143, so I'm using it. Here comes the question: when I was playing wit...
more »

2017-04-13 12:04 (1) Answers

Why using pipe for sort (linux command) is slow?

I have a large text file of ~8GB which I need to do some simple filtering and then sort all the rows. I am on a 28-core machine with SSD and 128GB RAM. I have tried Method 1 awk '...' myBigFile | sort --parallel = 56 > myBigFile.sorted Method ...
more »

2017-04-12 08:04 (4) Answers