ontape -s -L 0 -F | rsh remote_server "ontape -p"
rsh local_server "ontape -s -L 0 -F" | ontape -p
ontape -p >/dev/null 2>&1
ontape -s -L 0 -F | rsh remote_server /my/path/ontape.sh
#!/bin/sh #define some GBasedbt environment variables, such as GBASEDBTDIR=/... ; export GBASEDBTDIR GBASEDBTSQLHOSTS=/...; export GBASEDBTSQLHOSTS ONCONFIG=/...; export ONCONFIG GBASEDBTSERVER=/...; export GBASEDBTSERVER PATH=/...; export PATH # 用 stdout/stderr redirection 调用 ontape ontape -p >/dev/null 2>&1