I am trying to get the contents of a symlink remotely, but I am having a hard time understanding why is not working.
I tried following the example on this post. but is not working for me. This is what I am trying to do.
$PATH_LINK=~/some/directory/to/link
SYMB_LINK=`ssh files@files_server.com 'readlink $PATH_LINK'`
but I get $readlink: missing operand
I can get it to work if I write the path in the command.
SYMB_LINK=`ssh files@files.files_server.com 'readlink path/to/file'`
I tried running it without the -f but still gives me the same problem.