You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed the comment (and the code) about getting the pid of cmd_a, but the rest of the script doesn't seem to make use of it. Anyway, if you still need to get it (more elegantly), here are two other ways:
# Inside cmd_b
PID=$(ps -p $$ -o pgid=)# or (tested only on cygwin)
PID=$(</proc/$$/pgid)# Outside cmd_b# same command with the above, but replace $$ with $!
The text was updated successfully, but these errors were encountered:
Noticed the comment (and the code) about getting the pid of cmd_a, but the rest of the script doesn't seem to make use of it. Anyway, if you still need to get it (more elegantly), here are two other ways:
The text was updated successfully, but these errors were encountered: