Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 have a large tar.gz file that I need to transfer from Windows to a UNIX machine and unzip into a folder that my login user doesn't have write permissions on. Once the file is on the machine I can extract it into the correct folder by using another user, but this user can't log in directly.

The problem is that the user that does the scp only has write permissions on its ~ and /tmp folders, neither of which is big enough to accept the file.

Therefore, I would like to use a named pipe created in the /tmp directory that I can extract the .tar.gz from using the user with the correct privs.

However, I am unsure how to cat the tar.gz to the named pipe using Putty. I have a feeling that plink is involved, but I can't quite work out the command.

share|improve this question
up vote 3 down vote accepted
plink -ssh user@host "cat > namedpipe" < file.tar.gz
share|improve this answer

Your Answer


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.