scp from aix to windows (cygwin) fails


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers scp from aix to windows (cygwin) fails
# 1  
Old 08-20-2008
Question scp from aix to windows (cygwin) fails

Hi...

my problem is that I want to copy one html-file to my windows-box webserver using scp.

so far no problem but the destination is in /cygdrive/c/program files/dest and as we all know unix doesnt like spaces in paths.

Code:
scp html.file user@windowsbox:/cygdrive/c/program files/apache/htdocs/

...doesnt work

has anybody a solution for that problem?
the file needs to be there...

thx
# 2  
Old 08-20-2008
Quote:
scp html.file user@windowsbox:/cygdrive/c/program\ files/apache/htdocs/
Did you try this ?

- nilesh
# 3  
Old 08-20-2008
hi

yepp i tried to but:

Code:
 scp html.file user@windowsbox:/cygdrive/c/program\ files/apache/htdocs
 scp: ambiguous target

any ideas?Smilie
# 4  
Old 08-20-2008
Did it ever worked? I am doubtful, copying to windows host simple doesnt work.
You can try to copy it to dir where there are no spaces in directory.

- nilesh
# 5  
Old 08-20-2008
Copying to "normal" windows directories is no problem. But i want to automate things. I could write a batch script under windows to copy it from A to B but that cant be a solution Smilie
is there really no chance to copy it?
# 6  
Old 08-20-2008
MySQL

Found the solution somewhere in the web:

Code:
scp html.file user@windowsbox:"/cygdrive/c/program\\ files\\/apache/htdocs"

but thank you anyway for responding...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

ASK | How to scp command AIX to windows

Hii Master, im will copy file/directory aix to windows with scp commandline, but some error below: Note: If ping to 172.16.0.250 reply and was connected, and was open/allow port 22 at windows server inbound In aix finish installing ssh in windows finish installing winscp my... (3 Replies)
Discussion started by: williamen
3 Replies

2. AIX

How to copy file from Windows to AIX using SCP?

Hi I'd like to copy file ( or directory ) from a window server to an unix server using scp command, something like this scp -rp admin@10.0.99.99:C:\Documents and Settings\abc.txt /home/oracle/abc.txtI tried testing something like command above but nothing worked. Somebody help !! Thank you (7 Replies)
Discussion started by: bobochacha29
7 Replies

3. Windows & DOS: Issues & Discussions

scp to windows and delete files from windows

Hi Team, I Have list file in Unix server, I need to copy files from Windows to Unix for the list of files given in Unix list file. after coping files to unix, I need to delete the files from Windows. i used SCP and moved files from windows to unix based on list file is done and working.... (1 Reply)
Discussion started by: spradeep86
1 Replies

4. UNIX for Dummies Questions & Answers

Cygwin/X11 issues on Windows 7

Hi All, I recently upgraded to windows 7 and am therefore reinstalling cygwin/x11 after a long time. On XP I would start xterm from the startxwin.bat file. I am experiencing trouble starting with the startxwin executable which is the new recommended startup method as well as afew other... (2 Replies)
Discussion started by: ScKaSx
2 Replies

5. Shell Programming and Scripting

cygwin script problem windows

I'm using cygwin to make some scripts,but I have the following problem. If I create a simple script like this one: if echo "Error" exit 1 fi echo "`expr $1 + $2`" I obtain line 6: syntax error:unexpected end of file. If I create the same script with cat>filename.txt and execute it... (4 Replies)
Discussion started by: Max89
4 Replies

6. UNIX for Dummies Questions & Answers

cygwin scp script error

I'm using cygwin scp to copy a file down from a AIX server to my laptop. I've got he script working from the command line. The file I'm copying is Processed.Apr21 and I'm copying it to /event_transfer folder on my laptop. scp username@149.131.224.104:/var/Tivoli/logs/Events/processed.Apr21... (3 Replies)
Discussion started by: cav.turbo
3 Replies

7. Windows & DOS: Issues & Discussions

Cygwin OpenSSH Windows

Hi all, I am just enjoying my first experience with UNIX type stuff but I am completely stumped with syntax etc. I have installed OpenSSH on my windows machine which is a working nicley and I can gain access using putty. I am however trying to set up public key authentication and turn off passwords... (2 Replies)
Discussion started by: bilbonvidia
2 Replies

8. UNIX for Dummies Questions & Answers

How to install Cygwin on Windows XP SP2

Please can anyone help me with how to install cygwin on a windows Xp SP2 platform, I cant seem to get it to work? (1 Reply)
Discussion started by: jimoney
1 Replies

9. BSD

How to use Cygwin to access X windows

Hi, I use WinMe, want to access, remotely, X-windows of my FreeBSD6.2 machine using the Cigwin from my windows machine as a normal user. However, I can login (through ssh and Telnet) to my FeeBSD machine as root and/or 'su' from some users grouped to the 'wheel' group. I'm still new to... (1 Reply)
Discussion started by: Praveen_218
1 Replies

10. AIX

SCP fails sometimes

Hi, I got a unix script which copies a file from my AIX machine to a file server using SCP command. I am calling this script 3 times in my process after a time interval say 5mins. My issue here is like most of the time its not sending the file at the first time run while other 2 will work fine.... (10 Replies)
Discussion started by: vipinc
10 Replies
Login or Register to Ask a Question