shell base-bash variable-numerical operation and operator
In the Linux shell, the type of the value of a variable is a string by default and cannot be directly numerically calculated.
[root@localhost ~]# a=9
[root@localhost ~]# b=15
[root@localhost ~]# c=$a+$b
[root@localhost ~]# echo $c
9+15
In order to perform numerical operations on variables, special methods are needed.
1. declare declares ...
Added by Webxplosion on Thu, 11 Jul 2019 03:57:24 +0300
shell script learning (2)
Catalog
replace
operator
1. Replacement
If the expression contains special characters, the Shell will be replaced. For example, using variables in double quotation marks is a kind of substitution, and escape characters are also a kind of substitution.Examples:
#!/bin/bash
a=10
echo -e "a is $a \n"
Output:
a is 10
Here - e denotes the substitu ...
Added by Rottingham on Tue, 09 Jul 2019 23:26:54 +0300
Executor Startup and Task Submission for spark Source Code Analysis
Task submission process
Summary
The start-up process of Spark's Master and Worker are expounded. The next step is the Executor process on Worker. This article continues to analyze the whole process of Executor startup and task submission.
Spark-submit
It is Spark-submit that submits a task to the cluster
Start its main class by starting the s ...
Added by DanArosa on Fri, 05 Jul 2019 00:48:03 +0300
sudo execution script could not find environment variables
brief introduction
Under the normal user, setting and export ing a variable, then executing echo command with sudo, can get the value of the variable. But if the echo command is written into the script, then sudo executes the script, the variable can not be found, and the value can not be obtained. The following is the case:
$ cat tesh.sh ...
Added by fredyap1234 on Thu, 04 Jul 2019 00:38:25 +0300
Audit of Shared root Account Privileges for Different Operations and Maintenance Personnel in Linux
First, why?In small and medium-sized enterprises, different operation and maintenance personnel of the company basically use root account for server login management, lacking the audit system of account authority. If there is no problem, it is good. If there is a problem, it is difficult to find the source.This article describes how to use comp ...
Added by Bryan Ando on Wed, 03 Jul 2019 01:20:35 +0300
Practice of CD Process Based on Gitlab
Practice of CD Process Based on Gitlab
> DevOps (the combination of English Development and Operations) is a collective term for a set of processes, methods and systems used to promote communication, collaboration and integration among development (application/software engineering), technology operations and quality assurance (QA) department ...
Added by charlesg on Mon, 01 Jul 2019 23:01:39 +0300
Work control for process management
Work control for process management1 What is job control? We know that linux is a multi-task and multi-terminal operating system. We can work on multiple terminals or on multiple tasks at one terminal. It is called work management that multiple tasks are carried out simultaneously in a terminal. For example, at a terminal, you want to cop ...
Added by marconi8 on Mon, 01 Jul 2019 01:47:11 +0300
Android debuggerd source code analysis
Introduction to debuggerd
Android The system comes with a practical program to diagnose abnormal exit daemon
Debuggerd. This process can detect program crash and output process status information when crash to file and serial port for developers to analyze and debug. Debuggerd's data is stored in the / data/tombstone / directory and can hol ...
Added by kfresh on Sun, 30 Jun 2019 04:57:55 +0300
What are the activation modes of activity? What does it mean? (three)
FLAG_ACTIVITY_NEW_TASK Label
Configuration form:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.open.android.task5">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@str ...
Added by Stephen68 on Sun, 30 Jun 2019 04:14:17 +0300
SpringBoot runs methods in the linux background with source code
1. On the linux server, add the &symbol at the end of the program as follows:
java -jar test.jar &
&Symbol, in the linux system, means to let the process execute in the background of the system, but once the process has output, your console will be occupied by the information currently output.
2. Consider redirecting the stand ...
Added by dbradbury on Fri, 28 Jun 2019 19:27:31 +0300