← Back to Posts

ENDSSH

👤 علی ذوالفقار 📅 1399/03/19 14:04:51 👁️ 931 views
all commands between ENDSSH wil run on the remote host
ssh root@192.168.0.1 << 'ENDSSH'
    pm2 stop 0 
    rm -rf /webapp
    pm2 start 0 
ENDSSH
← Back to Posts