在shell 中不退出控制台执行command

#!/bin/sh
COUNTER=1
while [  $COUNTER -lt 101 ]; do 
        psql xcatdb xcatadm << EOF
insert into nodelist (node,groups,status,statustime,appstatustime,primarysn,hidden,updatestatus,updatestatustime,comments,disable) v
alues ('$COUNTER','22','33','22','33','22','33','22','33','22','33');
EOF
        let COUNTER=COUNTER+1  
done

你可能感兴趣的:(command)