I am using EasyEngine over Ubuntu 18.04.
I must execute ee cli check-update in order the know if there is an update.
If there is, I must execute ee cli update.
When there is no update, I get
Success: EasyEngine is at the latest version.
Is there a way I can automate this with CRON? I mean a way to create a CRON to check if there is an update, and in case there is, to update it.
Thanks for any help, as I am a total noob in Linux, CRON, etc
I have tried:
ee cron create site_name --command='ee cli update --due-now' --schedule='#every #weekly'
It didnt work, returned an error:
sh: 1: ee: not found
Sorry, just learned it was a dumb question. Its not possible to schedule for a domain to run a command which should be runned by the host
The correct command, which works is:
ee cron create host --command='ee cli update' --schedule='#every #weekly'
I hope this helps others
Related
I am trying to install Azure CLI on my raspberry pi 3 which runs Linux OS. I followed this guide, but it gives me this error: bash az-command not found. I search online and found no solution to this error.
To install Azure CLI, the simplest way is to follow the steps in the link provided. But it seems you use the second way. So you can't run the command apt install azure-cli directly. You need to prepare the dependencies for the Azure CLI. And you also need to make sure if your network is OK. In the end, I recommend you use the first way that runs the shell script.
I am facing the exact problem. i did "docker run -it mcr.microsoft.com/azure-cli" without the quotation marks
I have been trying gearman and it seems to be working very well. I would like to use GearmanManager to run my workers.
Most of the other references I see have a install.sh script to install it. However this script doesnt seem to be present right now.
The master branch needs PHP5.5. I am running PHP5.4. So, could not run
composer install
I checked the other branches(e.g. v1 and v2) and it seems to need a lower versions of PHP. However, I am not sure how to use. How can I do the installation?
Ah, just make sure the dependencies are installed
and then you can use pear or pecl
./bin/pecl_manager.php -w /path-to-worker -c ./etc/config.ini -vvv
I installed xampp in ubuntu 12.04 and everything is ok but when i am trying start it from terminal i get this error:
start: missing job name
try 'start --help' for more information.
JOB is the name of the job that is to be started, this may be followed by zero
or more environment variables to be defined in the new job. This is the information which i got from help but is my first experience with linux. all tutorials on the web tells that all the things that i need to do is just enter start...
What to do?
Thanx
When you follow this guide: http://www.apachefriends.org/en/xampp-linux.html#378
and run command:
/opt/lampp/lampp start
Or, you run some other command?(in question is not specified what you have executed). If so, most likely something is not correctly installed...
Also you should provide xampp version, how the software was installed (rpm, compiled,....)
I have written some cron jobs using the crontab feature on my ubuntu. Can I use Jenkins to monitor these jobs?
Edit 1: I have Jenkins already installed on my local machine: localhost:8080. So right now, I have cronjobs running on crontab. I cannot create a new job on Jenkins and run them on Jenkins's shell because of certain requirements.
Following Pragmatic's solution, I looked at https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs and tried to sudo apt-get install jenkins-external-tool-monitor, but I am getting: E: Couldn't find package jenkins-external-tool-monitor. Any work arounds?
Edit 2: I have figured it out. Very Important: I tried to set this up using jenkins-core-1.47*.jar file, and it didnt work. It did work with jenkins-core-1.466.jar. So if you are using some .jar file, stop jenkins, replace it with a jenkins.war that corresponds to jenkins-core-1.466.jar and start jenkins after. That should work!
Yes, you can do that!!
Have a look at this link: Monitoring external jobs.
I could have explained the whole method here itself but the details in the question were minimal.
Hope this helps you.
Possible...See this
https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs
As others have stated above, follow: https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs
Then I started getting this ugly error: https://issues.jenkins-ci.org/browse/JENKINS-14107
If you face this problem as well, replace the current jenkins.war file with one from version 1.466. That is the one that worked for me. Before I replaced the war file, I stopped the jenkins server by : /etc/init.d/jenkins -stop and then replaced the war file and then started the server: /etc/init.d/jenkins -start
An alternative approach is to use an instance of Jenkins to replace your cron jobs entirely.
See:
Drop that cron; use Hudson instead
Replace Local Cron With Jenkins
I have a strange problem with cron which is skipping pg_restore command (Postgres Restore) in the script file and not reporting any errors in the log file even if stderr is enabled. Could any one help what I am doing wrong?
Update:
Added Distribution Info and Cron,
I am using CentOS release 5.4 (Final) distribution with 64 bit package and my cron job is,
51 14 * * * /opt/scripts/test.sh 2>&1 >> /opt/logs/test.txt
Note: This is happening if backup(*.tar) archive has any errors but restores if I run the script manually.
Thanks,
Karthik
The odds are that you must specify the absolute, full path to the pg_restore command.
Since you don't seem to show your script, I cannot actually see that you forgot to.
This is a FAQ item since cron jobs run in a reduced environment and the PATH variable can be set to other things (or even be unset)
The problem is with the postgres version and the installed CentOS because I used external repository to download the latest version of postgres and learned that its always best to download the postgres version supported and verified by centos team from the same repository only.