Create function check status for other system
This commit is contained in:
		
							parent
							
								
									1df5dad95c
								
							
						
					
					
						commit
						c944e29c51
					
				| 
						 | 
					@ -915,7 +915,7 @@ const checkMultipleRequest = async () => {
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (req.method === "SSH") {
 | 
					      if (req.method === "SSH") {
 | 
				
			||||||
        exec(req.url, (error, stdout, stderr) => {
 | 
					        await exec(req.url, (error, stdout, stderr) => {
 | 
				
			||||||
          if (error) {
 | 
					          if (error) {
 | 
				
			||||||
            allResponse+=JSON.stringify(req.name+"\n"+error)
 | 
					            allResponse+=JSON.stringify(req.name+"\n"+error)
 | 
				
			||||||
            report.push({
 | 
					            report.push({
 | 
				
			||||||
| 
						 | 
					@ -925,7 +925,6 @@ const checkMultipleRequest = async () => {
 | 
				
			||||||
              code: error.status,
 | 
					              code: error.status,
 | 
				
			||||||
              lengthOrData: "Error: " + error,
 | 
					              lengthOrData: "Error: " + error,
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
            return;
 | 
					 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          if (stdout !== "") {
 | 
					          if (stdout !== "") {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue