Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
main.shがあり、その中にsub.shを呼び出します。ただし、sub.shに情報を渡す必要があります。これは次のように実行できますか?
wget centos_64bit_novz.sh sh centos_64bit_novz.sh --LEVEL=$LEVELSEC --SERVVRT=novz
を使用wget -O-して、コンテンツをに入れますstdout。 またbash -s、を使用すると、引数を使用できます。
wget -O-
stdout
bash -s
wget centos_64bit_novz.sh -O- | bash -s --LEVEL=$LEVELSEC --SERVVRT=novz