Skip to content

Tag: linux

Nginx start failed – how I can repair that problem?

I’m a little bit newbie. I’ve got started server few months ago. Everything was okay but now on server I can’t even echo something. How Can I repair nginx server? My debian and nginx version nginx version: nginx/1.14.2 that’s my status for nginx and there’s my try to start a ngin…

bad file descriptor: error on accept() (socket)

I am trying to write a simple chat application using TCP protocol in Linux, in which server receives strings from the client and it sends strings size to the client. When I run client, the server throws a “Bad file descriptor” error and exits. Nevertheless if I send input strings by client it rece…

Delete Folder in DBFS

I want to delete all the folders from my path When I try : I get SQL Parse Exception How do I solve this Answer It looks like your notebook has SQL as primary language, but you’re trying to use the Python code. Change your cell to: P.S. You can omit dbfs: – it’s used by default.

C++ including Python.h compiling using makefile

I am trying to compile a C++ program which uses Python.h to execute some python scripts. Before adding the python, I had a makefile which works perfectly. I added the code to run the python script, which involves including the Python.h file. I edited the makefile to include this file, without success. My make…

linux: Create device file in the kernel driver code

The application needs a device file (usually in /dev) in order to use a kernel driver. Is it wise to create this file in the driver code so the file will be created during insmod ? Another way: create this file in a script (e.g /etc/rc.local) Can you please tell what is the right way ? Thank you, Zvika Answer

Parallel TCP connection using threads

I am trying to build a system that opens parallel TCP sockets using threads. My threads are triggered using message queue IPC , thus every time a packet arrive to the message queue a thread “wakes up” , open TCP connection with remote server and send the packet. My problem is that in Wireshark , I…

Syntax error calling Python from C with fork-execv

I want to call a Python script as a child process from a C program using fork and execv. I have tested it calling bin/ls and it works: So I changed the C code to call the Create_Buffer() function in this Python file: The Python script has two functions; I want to call Create_Buffer(), so I changed my C file