skip to Main Content

Redis – How to properly use regex to search from a command's output in Bash?

I have a command lando info which has a fairly large multi-line output: [ { service: 'appserver', urls: [ 'https://localhost:52836', 'http://localhost:52837', 'http://if-build-d9.lndo.site/', 'https://if-build-d9.lndo.site/' ], type: 'php', healthy: true, via: 'apache', webroot: './web', config: { php: '/Users/runo/.lando/config/drupal9/php.ini' }, version: '7.3', meUser:…

VIEW QUESTION

pkill doesn't kill process – CentOS

I have a process running called productivity [root@productivity ~]# netstat -tunlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1009514/sshd tcp6 0 0 :::8443 :::* LISTEN 2803472/productivit…

VIEW QUESTION

tail -f | grep in if statement – Debian

I'm running from bash script something like $(command -options)& export SC_PID=$! if tail -f <log_filename.txt> | grep --line-buffered -E "(some expression)"; then kill -STOP $SC_PID fi but it's writing "(some expression)" in the command line output instead of killing the…

VIEW QUESTION
Back To Top
Search