Home
Sign Up
Sign In
›
Bash Reference Manual
V2EX
›
Bash
bash 脚本能否捕获哪个调用它
imn1
·
Oct 22, 2016
· 1812 views
This topic created in 3585 days ago, the information mentioned may be changed or developed.
echo $0 只能显示自己
例如
A.sh
-----------
#!/bin/bash
B.sh
-----------
B.sh 中能否知道是 A.sh 调用?
bash
调用
echo
bin
1 replies
•
2016-10-22 13:56:56 +08:00
1
xzl380
Oct 22, 2016
echo $PPID
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
5730 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 03:41
·
PVG 11:41
·
LAX 20:41
·
JFK 23:41
♥ Do have faith in what you're doing.
❯