Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to scp a file with it's alias. How can I achieve this?

share|improve this question

Have you tried scp with -E flag?

share|improve this answer
    
An alias is not the same as a symlink, and it will break with this method. – Sven Mar 1 '11 at 15:07
up vote 0 down vote accepted

I solved this by making symlinks instead of aliases.

share|improve this answer

You could use the osascript command to run an AppleScript that dereferences the alias and returns the path to the original.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.