Linuxカスタムコマンド:curlを使用してhttpリクエストを送信します

ファイル名:call

#!/bin/bash
echo ---$1
echo ---$2
curl $1 --connect-timeout 40 -m 40 -d "$2"

スキャンコマンドパスを増やす

vi ~/.bash_profile

ファイルの最後に追加します。

export PATH=$PATH:/home/yourpath/

すぐに効果的:

source ~/.bash_profile

カスタムコマンド効果:

call "http:/xxxx"  "xxx"

 

おすすめ

転載: blog.csdn.net/x18094/article/details/113884592