I'm executing this command:
exec('sh myFile.sh paramater1')
But in myFile.sh
, how to get parameter1
?
I didn't find any information about it
The command line parameters in shell are referenced as $1
, $2
, and so forth.
As a side note:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.