This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const echoPostRequest = { | |
url: pm.environment.get("URL") +'/api/auth/rest_login', | |
method: 'POST', | |
body: { | |
mode: 'raw', | |
raw: JSON.stringify({ name: 'admin', password:'xxxxx' }) | |
} | |
}; | |
pm.sendRequest(echoPostRequest, function (err, res){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 自动下载目标软件所需的所有依赖到当前文件夹 | |
yumdownloader $1 | |
while true; do | |
c1=`ls -l | wc -l` | |
for rpm in `ls`; do | |
echo $rpm | awk -F '-' '{printf("%s-%s\n",$1, $2)}' | xargs -I {} yumdownloader --resolve {}; |