Tag:Execution procedure

  • 1、 Getting to know shell


    Getting to know shell Shell is a shell of Linux kernel. View current shell tools echo $BASH output Indicates that the current environment is bash. Write the first shell script, fire_ shell.sh #!/bin/bash #FileName: first_shell.sh #Use: auto echo Hello World! #By authors: wl_it 2020.05.05 echo “Hello World!” Save and modify the execution permission CHMOD U […]

  • [go] gocron source code reading – flag package to achieve command line parameter acquisition


    Calling flag package can easily obtain the parameters passed in the command line, for example, it can achieve the goal of getting command line parameters and performing different operations similar to nginx execution program package main import ( “flag” “fmt” “os” ) func main() { var h bool var c, s string flag.BoolVar (& H, […]

  • Python common module logging — log output


    purpose The logging module is a built-in module of python, which is mainly used to output the running log, and can flexibly configure the information of the output log. Basic usage logging.basicConfig(level=logging.DEBUG, format=’levelname:%(levelname)s filename: %(filename)s ‘ ‘outputNumber: [%(lineno)d] thread: %(threadName)s output msg: %(message)s’ ‘ – %(asctime)s’, datefmt='[%d/%b/%Y %H:%M:%S]’, filename=’./loggmsg.log’, filemode=”a”) parameter Logs are divided into […]

  • Understand the reasons behind the prompt no such file or directory in Linux


    1 background Recently, I have been studying how to make a compiler system (APT is not supported) in Linux system of zc706-arm development board. I just found that the company has an arm development board of NVIDIA and has a ubunut system (APT support). At this time, an idea arises. Can the programs compiled on […]

  • Rxjs — subscription


    Subscription What is a subscription? A subscription is an object that represents a resource that can be disposed after processing. It is an executable of observable. There is an important way to subscribe,unsubscribe, which is parameterless and only processes the resources of the subscription. In the last version of rxjs, subscription was also called “disposable”. […]

  • The usage of main function in Python


    In what scenario will there be a main function? When the python script is imported as a module, the main() function will not be executed. What does the main function do? __Name = is the main function entry of Python. It is not to say that you can use Python xxx.py to execute by adding […]

  • PHP and ASP use shell. Application to execute program code


    I tried it today. It’s OK to use open. The PHP code is as follows. It seems that I haven’t seen the relevant methods in PHP’s webshell yet Copy codeThe code is as follows: <?php $wsh = new COM(‘Shell.Application‘) or die(“Shell.Application”); $exec = $wsh->open(“c:\\windows\\system32\\notepad.exe”); //There is no echo. There are multiple Notepad processes. You can […]

  • Linux bash printer run time


    #!/bin/bash function ShowTime() { endTime=`date +’%Y-%m-%d %H:%M:%S’` start_seconds=$(date –date=”$startTime” +%s); end_seconds=$(date –date=”$endTime” +%s); usedTime=$((end_seconds-start_seconds)) #Display in red font for more than 2 seconds, yellow font for 1-2s and green font for less than 1 s if [[ $usedTime -ge 2 ]] then echo -e “\033[31mUsed time:$usedTime s \033[0m” elif [[ $usedTime -ge 1 ]] then […]