mercredi 7 janvier 2015

i am accessing remote machine in linux using Bash scripting


i am accessing an remote machine using ssh command and pem file.My code is as follows


!/bin/bash


ssh -i rijo.pem ubuntu@90.45.74.51 <cat /opt/revsw-config/varnish/sites/rijotests4934567_revsw_net.json | egrep 'SERVER_NAME' | cut -b 19-44 EOF In this i am not able to store the value into var but in terminal its getting stored but while executing in script its showing No such file or directory found. Can u please help me in this.



Aucun commentaire:

Enregistrer un commentaire