There are a lot of looping statements in the shell script, the console output much more special, flooded the useful information,
CodePudding user response:
Directly in the query can take in
CodePudding user response:
Sh (script: "./test. Sh>/dev/null, "label: 'shielding the command output, returnStdout: true)
">/dev/null "for the shell test. Sh correct execution result output to Linux black hole, abnormal output will be displayed in the console,
All information should be shielded, with "& gt;/dev/null 2 & gt; & 1
"
CodePudding user response:
In a script written on the front of the#!/bin/bash
Can block the content of the script output to control the output
Script statements don't want to output information & gt;/dev/null 2 & gt; & 1
This is ok