Questions tagged as 'shell'

1
answer

How to make a shell file create a page in php

I would like to do a MIB (Management Information Base), which is created, and I have to create the manager and the agent. I'm using shell to do this, in the agent I have to create a page in PHP , to display the information of the...
asked by 05.05.2018 / 15:00
1
answer

Remove content between two files

I have two files. One file contains words as if it were a dictionary and another file contains records of Logs. I would like the file containing the information (Dictionaries) to be removed from the Log file. Remove the entire log line and not j...
asked by 15.05.2018 / 16:57
1
answer

Put flag at bash shell command line

I'm trying to put a flag that can sort or shuffle the output, but I could only do that in code and intended it to work when I put the flag on the command to run the file, for example ./bash.sh -r .     
asked by 02.01.2018 / 22:34
0
answers

Disconnecting the headset microphone

I want the device to use the microphone itself, not the headset I tried using the "android.intent.action.HEADSET_PLUG" command in the shell but I think I'm using it wrong. Someone can help me Note I have root.     
asked by 18.01.2018 / 06:24
1
answer

Log Shell cakephp

I have a SHELL file in cakephp as below: <?php class AtualizarIndicadoresNormaisShell extends AppShell { public function atualizar() { //Chama model e sua action ClassRegistry::init('DadoIndicadoresNormal')->atualizar...
asked by 31.03.2017 / 22:34
1
answer

Redirect the standard HCIDUMP output using GREP to a file

I'm using a shell script to do HCIDUMP and using some filters to write to a file. With the following command, the destination file is empty. hcidump -a l2cap | grep -v -e 'CAP' -e 'HCI' > onlystringsrecieved.txt Using the same command wi...
asked by 26.03.2017 / 05:48
1
answer

How to make conditional receive a parameter followed by an argument

I've been trying to create a if..else structure with a passing parameter. See: Example $ opt-get -i pacote.tgz    This, I'm creating something similar to the apt-get tool of the Debian Operating System . I have made...
asked by 03.12.2016 / 23:22
1
answer

How can I find the user in Ubuntu (Shell / Bash)

I want to create a system that should interactively find the user and subsequently tell whether the user exists or not. I must provide the username and if the user is found then the system found the username and enter, if not say there was an er...
asked by 12.10.2015 / 13:37
1
answer

How to recover a file deleted by the "rm" command? [closed]

I accidentally deleted a file using the command rm . Is there any way to recover it?     
asked by 11.12.2015 / 15:34
1
answer

[PHP Apache Shell], Permission apache kill

I need to kill a process with php , but I use exec , system or exec_shell and it is not killing processes, I ran on the net and people are saying that apache is not allowed to execute these types of the commands, the st...
asked by 18.05.2015 / 16:01