Posts by Ibrahim • 146 points
6 posts
-
0
votes1
answer108
viewsA: Read from file and use read parts to call functions
See if the function below fits your need: this code snippet will read the text file and look for the function in a structure already defined and execute the command if it exists. #include…
-
4
votes1
answer1276
viewsA: Multi Thread Socket Server - Java Server and C++ Client
estevammr, as I do not know java very well I will speak of the client. c Put the read() log function after the following snippet. write(clienteSockfd, buffer_para_servidor,…
-
0
votes1
answer120
views -
1
votes2
answers1140
viewsA: Script to shut down the computer when closing a particular program
André Cabral Would close a program or window? Considering some kind of program: Create a file with the name you want, the examples below refer to Ubuntu: touch desliga_automatico Put the permission…
-
2
votes1
answer609
viewsA: C socket - Client-server connection test (Linux)
I found a library called libping I found her in the vivaolinux Below an example of usage (also found in the link above) /* main.c */ #include <stdio.h> #include <ping.h> int main( int…
-
3
votes1
answer5247
viewsA: Remove text file
André see if the code below offers some help. Since I didn’t have the code you used to verify I made one and tested it here. Remember what Lucas Henrique commented, make sure your user is allowed to…