Questions tagged as 'linux'

1
answer

Calling python script through a php script accessed by the browser

I have a php script that will get uploaded videos and I would like to convert these videos using ffmpeg. I created a python script that receives php parameters and calls ffmpeg to do the conversion. index.php <?php $data = array('fil...
asked by 16.11.2014 / 02:29
1
answer

Schedule task linux (Cron)

How to open a file and shut down the computer with crontab? Here's my attempt: 30 07 * * * killall qbittorrent (funcionando) 50 07 * * * shutdown -r 1 "Desligando desktop" (não funciona) 30 12 * * * qbittorrent & (não funciona) 55 13 *...
asked by 12.02.2016 / 17:02
1
answer

NGINX as reverse proxy and cache of an external shared server running apache

I'm trying to set up a Brazilian instance on Amazon to be a reverse proxy with cache and compression for a server (I accept panel suggestions, preferably free, that accept this setting) in the US. The goal is to use the maximum of Brazilian H...
asked by 22.02.2014 / 18:22
1
answer

Creating and communicating with daemon

I have a Python application where I need to keep it online all the time. The application has its own console, which is where I make the communication and step parameters. I understand that I can create the Daemon to leave it online all the...
asked by 18.02.2015 / 15:32
0
answers

Beginner on samba4, domain controller [closed]

I have visited several sites in search of examples of how to make samba4 run the domain controller service, the problem that follow in these tutorials is that I end up getting some kind of error at some stage and do not have a help return. / p>...
asked by 19.06.2015 / 16:14
1
answer

Why does a sort method not work correctly on LINUX servers? [closed]

I have a question, I have a function to sort a array that has names of people with accent (UTF-8). It works correctly on WINDOWS servers, but when I run the code to run LINUX servers, the accentation gets interrogated and does not order c...
asked by 12.08.2015 / 22:29
0
answers

Gammu CMS Error 500: "unknown error"

When sending SMS using Gammu , for some numbers that are active and working I get the following error: / p> Array ( [0] => 4 / 0 [1] => Sending SMS 1/3....waiting for network answer..error 500, message reference=-1 [2] =>...
asked by 10.12.2014 / 15:12
2
answers

How to include code in Shell Script files

How can I perform the following process: Add arquivoa.sh and arquivob.sh into arquivoc.sh , and then execute the functions defined within each file filea.sh #!/bin/bash echo "Arquivo A" function funcaoA(){ echo "Ex...
asked by 24.03.2017 / 16:20
2
answers

How to compare the value of a variable with a string in the shell script

Well, I'm trying to make a comparison like this but bash is interpreting it as a command if "$V1" = "sim" then ... How do I compare the value of V1 with the string "yes":     
asked by 03.07.2018 / 21:54
3
answers

Check if a process is not running and then run it

I need to run a given command via terminal. However, this command should only be run if the process is not running. If it is running, you do not need to do any other operation. How to do this in linux?     
asked by 18.01.2016 / 17:35