Skip to content
Advertisement

Tag: ubuntu-14.04

Bash Array Key from User Input

So I have a bash script which will scan a directory and run a function on a selected input. It seems that for some reason, the key is not setting from the array properly. What am I missing? All help is much appreciated! EDIT: As a side note, I can run the commands separately and get results. Here is the

‘exec(): Unable to fork’ on Ubuntu 14.04.3 LTS

I’m running unittest scripts and for test case setup I need to run shell command from time to time. As a result shell command is run around 50 times during unittest execution. It works ok on CentOS release 6.6 (Final) server but doesn’t work on Ubuntu 14.04.3 LTS. The problem is that after around 20th time shell script execution I

MySQL/MariaDB – Reset password without DB restart

unfortunately I forgot to note down the new password from the last recovery. This means I can’t login as root and the init script can’t restart it due to not having been updated (sys_maint). Is there a way for me to fix this, most of the guides I found require you to restart the mysql server, well, doesn’t work in

Force no prompt in apt-get upgrade or apt-get dist-upgrade

I’m using AWS EC2 14.04 LTS and I’m trying to run command apt-get -y upgrade or apt-get -y dist-upgrade, however, I always get prompt like this: I tried following commands and none of them work and I still get above prompt: apt-get update && apt-get -y -o Dpkg::Options::=”–force-confmiss” -o Dpkg::Options::=”–force-confdef” -o Dpkg::Options::=”–force-confnew” dist-upgrade apt-get update && apt-get -o Dpkg::Options::=’–force-confold’ –force-yes

Advertisement