gpt4 book ai didi

bash - wait $! 是什么意思?意思是

转载 作者:行者123 更新时间:2023-11-29 09:18:08 25 4
gpt4 key购买 nike

命令的上下文是

su postgres sh -c "$POSTGRES -D $DATADIR -c config_file=$CONF" &
wait $!

说明书上没有记载

man wait

NAME
wait, waitpid, waitid - wait for process to change state
......

文档

http://www.gnu.org/software/bash/manual/bashref.html#index-wait这是从维基百科引用

最佳答案

来自 man bash :

($!) Expands to the process ID of the job most recently placed into the background, whether executed as an asynchronous command or using the bg builtin

关于bash - wait $! 是什么意思?意思是,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33375924/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com