I am not able to figure out what does &p do in the below script. and does print -u4
mean that whatever argument passed is written in file decriptor 4?
1: $SRVRMGRCMD |&
3: BGPID=$!
4: exec 4>&p
5: exec 5<&p
6: sleep 2
7: # Build a list of Servers
8: print -u4 "list servers show SBLSRVR_NAME"
Thanks in advance.
These appear to be references to co-processes (in ksh or zsh).
see https://unix.stackexchange.com/questions/86270/how-do-you-use-the-command-coproc-in-bash