Questions tagged as 'shell'

0
answers

Bash Shell - Script to get URL's with word chosen by the user

Good evening, I have a question regarding a bash shell script that will return the URLs present on a reddit page, that is, in a sudoddit. What I got so far was to return the URLs that are on a page inserted in the code and wanted it when running...
asked by 14.12.2017 / 23:05
1
answer

Shell script detect APs and Mac Address

My goal is to develop a script in a Linux (Kali Linux) environment that automates certain tasks such as running, detect Access Points showing me the signal strength and Mac Address as well as the clients that are connected. I do not care...
asked by 27.10.2017 / 02:32
0
answers

Restricting the operation of some Android buttons

I've been trying for a few days, some alternatives to locking the buttons on a tablet, and then I need them to work again. I'll show you some ways I've done and which one is working the best possible way so far. This was the first attempt, ho...
asked by 20.10.2017 / 14:13
0
answers

Module requests are imported into IDLE, but not into Thonny (the IDE I use)

I installed the module requests through Terminal with sudo pip3 install requests (I'm using Mac) and I was able to import it through the interactive shell without problems in IDLE. But when I try to import through Thonny's interact...
asked by 07.10.2017 / 00:46
0
answers

Duplicate paths in the $ PATH environment variable

I have noticed that the paths I add to $PATH in my .bashrc appear duplicates when I open session in tmux (terminal multiplexer): export PATH=$HOME/miniconda3/bin:$PATH export PATH=$PATH:$HOME/Devel/bin If I print $PA...
asked by 28.08.2017 / 05:22
1
answer

Opening Shell script in Python

I'm automating tasks and I'm new to Python, so I'd like your help because I need to run a Shell script on another machine and this command I need to give inside a Python code. I thought about using something like: #!/usr/bin/python # -*-...
asked by 01.08.2017 / 07:37
0
answers

Shel Script [tail] return line at the end of each concatenated file

Live, I have several files with the same headers. what I wanted to do is copy the contents of all the files to within 1 so but only with 1 header. I already managed to do this part with the code below head -3 $FILE1 > all.csv tail -n...
asked by 08.06.2017 / 17:49
1
answer

Add program to windows shell

I need to add a program to the windows shell so I can call it more conveniently. In the Linux environment I usually create a soft link between the program and the program installation folder, here is an example: ln -s /opt/sublime-text/subl...
asked by 23.03.2017 / 13:00
0
answers

Non-blocking process in PHP [duplicate]

A little help. I have the following code. $output = shell_exec("php /sites/empresa/php/faturamento/gerar_fat_simulado.php ".$cliente.' '.$mes.' '.$ano.' '.$tipo); It runs through the shell a rather time-consuming routine that locks the en...
asked by 01.02.2017 / 12:48
0
answers

How to change environment variable path from $ HOME to another?

The intention is to load with you all "created or downloaded" files, and mount it again on any LiveCD distro, leaving it as the default directory. Note that the key to this reasoning logic is to only save files created and come from the int...
asked by 21.10.2016 / 19:22