The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using "Cygwin" in windows for unix sanjeev1 UNIX for Dummies Questions & Answers 3 05-10-2009 06:51 AM
Cygwin OpenSSH Windows bilbonvidia Windows & DOS: Issues & Discussions 2 11-20-2008 02:51 PM
How to install Cygwin on Windows XP SP2 jimoney UNIX for Dummies Questions & Answers 1 08-06-2008 10:48 AM
X-windows Problem /GUI Installation fails ak835 SUN Solaris 0 04-24-2008 04:18 AM
How to use Cygwin to access X windows Praveen_218 BSD 1 03-06-2008 09:46 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-20-2008
cypher82 cypher82 is offline
Registered User
  
 

Join Date: May 2008
Location: Germany
Posts: 13
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 (permalink)  
Old 08-20-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Quote:
scp html.file user@windowsbox:/cygdrive/c/program\ files/apache/htdocs/
Did you try this ?

- nilesh
  #3 (permalink)  
Old 08-20-2008
cypher82 cypher82 is offline
Registered User
  
 

Join Date: May 2008
Location: Germany
Posts: 13
hi

yepp i tried to but:

Code:
 scp html.file user@windowsbox:/cygdrive/c/program\ files/apache/htdocs
 scp: ambiguous target
any ideas?
  #4 (permalink)  
Old 08-20-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
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 (permalink)  
Old 08-20-2008
cypher82 cypher82 is offline
Registered User
  
 

Join Date: May 2008
Location: Germany
Posts: 13
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
is there really no chance to copy it?
  #6 (permalink)  
Old 08-20-2008
cypher82 cypher82 is offline
Registered User
  
 

Join Date: May 2008
Location: Germany
Posts: 13
Thumbs up

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...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0