Author: Webner
Run Apache Tomcat server via cron job and notify an email id
Below is the shell script which can start Apache Tomcat server via cron job and send notification to defined email is: #!/bin/sh RESULT=`netstat -na | grep 8009 | awk ‘{print $7}’ | wc -l` if [ “$RESULT” != 0 ];
MySql | Display Latest entries of two columns of two rows into single row
Suppose we have two tables : articles and article_comments CREATE TABLE articles( `id` INT( 11 ) NOT NULL AUTO_INCREMENT , `title` VARCHAR( 200 ) NOT NULL , `content` VARCHAR( 500 ) NOT NULL , `author_name` VARCHAR( 20 ) DEFAULT 1
Salesforce | Get the field list recursively of related objects
To implement RabbitMQ in our project we need to write the code for producer and consumer. What is Producer? Producer produces the messages and sends it to exchange. Exchange receives the messages and routes it to the corresponding queue. What
Salesforce | Get the field list recursively of related objects
If you want to fetch the Field names recursively of Related objects up in Salesforce how to do this? Solution: You have to first fetch the field names of one Object Name and scan the list to find the field
How to enable the settings to run the cron using browser in Moodle/Totara
Description: If you need to run the moodle cron job to test any task which will be executed by the cron job then you can do so by typing the following url in the address bar of your browser: http://localhost/your-moodle-site-name/admin/cron.php
AWS | How to start/stop Amazon EC2 server using Lambda Services
If you want to improve utilization of your Amazon EC2 machine instances by stopping and starting instances at specific time intervals then you have to use a CloudWatch Event to trigger a Lambda function to start and stop your EC2
Zoho CRM | How to hide some account records from view
Zoho does not provide any direct mechanism to hide or unhide account information of any user. However, we have an alternative solution for this problem. We can use a listview to solve this problem. The List view can be used
1and1.com | Create FTP account for specific directory
How to create new FTP user on 1and1.com for specific directory 1. Login to your 1and1.com account. 2. Control panel page will be opened, shown in following screenshot: 3. Click on Secure FTP Account shown at the left menu of
How to integrate CyberSource payment gateway with CakePHP 2.*
Steps to integrate CyberSource payment gateway with CakePHP 2.*: 1. Download zip file of CyberSource library from “https://github.com/chrismeller/cybersource”. 2. Extract cybersource-master folder into cakephp vendors folder. 3. Create tests/config.php for test transaction with code and add credentials like below: <?php
