troubleshooting Question

Run command through ssh not working

Avatar of Christian Palacios
Christian PalaciosFlag for Canada asked on
Linux* Bash
3 Comments1 Solution86 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Julian Parker
Senior Systems Administrator

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros