Questions tagged as 'linux'

0
answers

Is it possible to delete a file if there is no reference to it in the database using mySQL

I would like to know if anyone knows of any way to create a "trigger" in MySQL that deletes a value from the table, delete a file together on the server, for example: Exclude the item from tbl_imagens whose name is imagem_1001.jpg...
asked by 15.04.2015 / 15:38
0
answers

Monitor hard drive Linux [closed]

Hello, I would like to know if it is possible to execute a certain action (execute a shell script file for example) when the server exceeds a certain percentage of storage. * Command used to view server disk space: df -h Att,     
asked by 23.09.2015 / 23:17
1
answer

Accessing the windows server folder by PHP on Linux

We have an intranet developed in PHP that is inside a Linux server with apache. I need to access a folder that is on another server and that server is Windows. Is there any way to do this?     
asked by 14.07.2015 / 13:41
1
answer

How to pass filename with accent and spaces as parameter to shell script file

I densenvolvi a shell script that receives the location of a file and makes various manipulations on it, eg: ./processa.sh path / file.txt But when I send a file name as a parameter that contains spaces, it gives error, because it places '\'...
asked by 16.09.2014 / 01:58
2
answers

Script to shut down the computer when closing a certain program

How do I create a script so that when the rdesktop window is closed the computer shuts down?     
asked by 18.03.2015 / 20:47
3
answers

List keyspaces in Cassandra

I need to learn how to use Apache Cassandra. I'm following a book called Cassandra: The Definitive Guide - Jeffrey Carpenter. I was able to do the installation in a good way, it seems, but when I execute the command: sudo cassandra -f I get...
asked by 17.10.2016 / 18:09
3
answers

Run a Script Shell with double click on Ubuntu

I have a program in Shell, it does the installation and configuration of some programs in Ubuntu, I wanted to know how to compile it or make it run when the user double-clicks it, yesterday I had found a C program that does this, but I lost the...
asked by 21.08.2015 / 00:34
2
answers

Use separate threads or programs?

I'm developing an application that involves three (perhaps more) processes that run concurrently: one HTTP server, one logger and another that will run the primary code. A priori, a simple solution to do this is to use three threads, one for...
asked by 13.11.2014 / 12:49
3
answers

Remove specific line of files in linux [closed]

I need to remove a particular line in a file crontab ex: * * * * * root /home/linaro/funcao1.sh * * * * * root /home/linaro/funcao3.sh * * * * * root /home/linaro/funcao4.sh * * * * * root /home/linaro/funcao5.sh I would like to dele...
asked by 07.11.2018 / 18:40
2
answers

How to find out what is a file and what is a directory

The question is as simple as the logic I have here. Logic: Assuming that files should always contain your .png .txt suffix etc ... While folders / directories take nothing but their plain name The idea is to get these referenced name...
asked by 13.03.2018 / 17:20