/bin/sh: Syntax error: Unterminated quoted string
Question I am trying to get a cronjob to pipe output into a dated file in a specified (folder) location.
My crontab entry looks something like this:
* * * * * /some/path/test.sh >> $(date "+/home/oompah/logs/%Y%m%d.test.log")
What I don't understand is that when I type this command at the console, I get the correct string:
echo $(date "+/home/oompah/logs/%Y%m%d.test.log")
/home/oompah/logs/20110329.test.log
What's causing this error and how may I fix it?
bash version info is:…
Read more ⟶bower command not returning anything
Question I've been trying to install bower, but I must be missing something cause the command bower is not returning anything at all!
I installed bower like this:
sudo npm install bower -g
this is the output:
npm http GET https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/tmp
...
... # Many requests here n_n
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/traverse
/usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower
bower@0.8.5 /usr/lib/node_modules/bower
├── stable@0.…
Read more ⟶How to install PHP GD in Ubuntu
Question I want to convert the image in low resolution with GD. I'm working on IBM Server under these speces Version: PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
and I have also comment out the extension from php.ini but can't enabled the GD on php server. I Just received this error. Run Command: sudo apt-get install libgd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgd…
Read more ⟶Completely removing phpMyAdmin [closed]
Question Closed. This question is off-topic. It is not currently accepting answers.
</div>
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I installed virtualmin and phpmyadmin separately using the apt-get command. phpMyAdmin didn't work because of Virtualmin's security settings (suexec).
When I visit mydomain.com/phpmyadmin, it would download the whole PHP page instead of execute it.
I tried disabling suexec but it didn't work.…
Read more ⟶The mcrypt extension is missing. Please check your PHP configuration
Question I just followed the tutorial located at https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu while fixing multiple other errors that I came across along the way and I'm stuck with one last error. When I log in to phpMyAdmin, there's a huge red error at the bottom saying "The mcrypt extension is missing. Please check your PHP configuration.".
I installed everything listed in the tutorial on Ubuntu 13.10 via putty.
Answer Try this:
sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/conf.…
Read more ⟶ImportError: No module named _io in ubuntu 14.04
Question I just fresh installed ubuntu 14.04LTS and i am trying to use pip but i am getting the following traceback:
(nlmanagement)psychok7@Ultrabook:~/code/work/nlmanagement$ pip freeze
Traceback (most recent call last):
File "/home/psychok7/code/work/venv/nlmanagement/bin/pip", line 9, in <module>
load_entry_point('pip==1.1', 'console_scripts', 'pip')()
File "/home/psychok7/code/work/venv/nlmanagement/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/psychok7/code/work/venv/nlmanagement/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/home/psychok7/code/work/venv/nlmanagement/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/home/psychok7/code/work/venv/nlmanagement/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 10, in <module>
from pip.…
Read more ⟶OpenMPI-bin error after update (K)Ubuntu 18.04 to 20.04
Question I have just upgraded my Kubuntu from 18.04 to 20.04. Unfortunately there is an error that keeps showing up everytime I use apt upgrade or installing something with apt. The error is:
update-alternatives: error: /var/lib/dpkg/alternatives/mpi corrupt: slave link same as main link /usr/bin/mpicc
It has been reported and yet has not been patched until the time I write this question.
After more than a month trying various ways to deal with this problem I finally found the solution as you can see below.…
Read more ⟶