Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

plink -ssh user@host "cat > namedpipe" < file.tar.gz
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.