Avatar of Christian Palacios
Christian Palacios
Flag for Canada asked on

Run command through ssh not working

Hi there,

I'm trying to run this command to get the value assigned to the variable, but it's not working.  I want to check the md5 sum of a file after it has been copied to another Linux server:

md5sumcommandazure=$(ssh oracle@10.41.22.69 "md5sum /data/oracle/dpdump/onegeo/ONEGEO20180118-093843.DMP | awk '{ print "'\$1'" }'"'"')

I'm getting this error, what am I missing?

bash: -c: line 0: unexpected EOF while looking for matching `"'
bash: -c: line 1: syntax error: unexpected end of file

Thanks!
- Christian
Linux* Bash

Avatar of undefined
Last Comment
Christian Palacios

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Julian Parker

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Christian Palacios

ASKER
Awesome, thank you!  I was adding way too much too it :)
Christian Palacios

ASKER
Great!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy