How can I have tcpdump write to file and standard output the appropriate data?

Linux
I want to have tcpdump write raw packet data into a file and display packet analysis in standard output as the packets are captured (by analysis I mea...
9 months ago

pthread_create: cannot allocate memory

Linux
I wrote a small tcp server, which creates a new thread for each incoming connection: while (server_running) { client_sock = accept(server_sock, ...
9 months ago

what error it is? python script linux

Linux
the program get the ls directory list print the index of the items, then ask select one item, and print the item but i get this error: ./directory.py...
9 months ago

What is the GID/UID of the system on Android?

Linux
How do I identify the number (integer value) of a particular group associated with a file? ls -l drwxr-x--x root system 2014-11-26 1...
9 months ago

gdb - list source of current function without typing its name

Linux
In GDB, the command: list function will list all the source for the function. Is there a command that will list all of the source of the function ...
9 months ago

Problems calling syscall function in C

Linux
For a homework assignment, I have to modify the linux kernel. I am working on a virtual machine, and I added a system call to the kernel, which I cal...
9 months ago

Having a small Issue running a Perl scripts IF statement.

Linux
I created a small script in Perl and I am really new to this. I'm supposed to have a script that looks at an argument given and create a directory tre...
9 months ago

How to find out where the process comes from in Linux?

Linux
Currently, I find that there are some weird processes in my VPS. See the screen dump ps the weird processes are bmzcvkboqq and yrvccvxkeh. They will r...
9 months ago

awk print specific number of character in columns

Linux
I have a file with many columns and rows and I want to remove the rows that are more than one character in the fourth and fifth columns. Input: --- ...
9 months ago

Why does sqlite3 not work on Amazon Elastic File System?

Linux
When I try to create a base with sqlite3 on a EFS directory, this results in an error: $ sqlite3 foo.db SQLite version 3.7.17 2013-05-20 00:56:22 Ent...
9 months ago

Host-Only Network not working on VMware Workstation

Linux
I installed WMware Workstation 9.0.2 on Windows 8 pro x64. I created an Oracle linux 6.4 virtual machine. I'm connecting to internet using only wirele...
9 months ago

How do you add a new directory in Linux?

Linux
I am currently taking a Computing GCSE, and I have got a Linux Controlled Assessment, and this is one of the tasks: Create a directory within your...
9 months ago

python subprocess module hangs for spark-submit command when writing STDOUT

Linux
I have a python script that is used to submit spark jobs using the spark-submit tool. I want to execute the command and write the output both to STDOU...
9 months ago

Faster solution to compare files in bash

Linux
file1: chr1 14361 14829 NR_024540_0_r_DDX11L1,WASH7P_468 chr1 14969 15038 NR_024540_1_r_WASH7P_69 chr1 15795 15947 NR_024540_2_r...
9 months ago

builtins.AttributeError: 'str' object has no attribute 'toString'

Linux
I'm a bit of a noob and I've been following a tutorial to create a basic app with PyQt/Python to query a MySql database. Here is the code: import sys...
9 months ago

Nodejs crash: GC segfault

Linux
Node version: 4.8.0 Platform: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux Node crashed during the Garbace col...
9 months ago

Jenkins: How is Script From Different Repo Being Included?

Linux
I am trying to debug a shell script that is executed via a Jenkins job. The first thing the script does is include another script that is in a comple...
9 months ago

php.ini is nonexistent Loaded Configuration File (none)

Linux
I have compiled php and apache successfully, without specifying the directory for the php config file. I want to add pear features, but there doesn't ...
9 months ago

When should I use TCP_NODELAY and when TCP_CORK?

Linux
I understood that both of them disable Nagle's algorithm. When should/ shouldn't I use each one of them?
9 months ago

Function to search of multiple patterns using grep

Linux
I want to make a bash script to use grep to search for lines which have multiple patterns (case-insensitive). I want to create a bash script which I c...
9 months ago