The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Triml leading zeros in unix kingofprussia UNIX for Dummies Questions & Answers 7 08-07-2008 06:04 AM
First Open Beta Program for Industry-Leading UNIX Operating System - HULIQ iBot UNIX and Linux RSS News 0 07-15-2007 11:10 PM
IBM Launches First Open Beta Program for Industry-Leading UNIX ... - MySolutionInfo ( iBot UNIX and Linux RSS News 0 07-15-2007 12:40 PM
numbering blanks wisher115 UNIX for Advanced & Expert Users 6 11-22-2006 07:36 AM
Solaris 9 remote login (ssh) drops connection ahmerin UNIX for Advanced & Expert Users 2 01-15-2005 08:02 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 02-14-2005
worf52 worf52 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 3
FTP Between UNIX & Windows drops leading blanks

I am using ftp on Solaris to transfer files to Windows 2000 that have leading blanks in the name (ex. " 12345A4444.BIN"). When they get to Windows the leading blanks are stripped off. Has anyone encountered this and is there a fix? If I use Hummingbird it is ok but that is not an option for this application.
  #2 (permalink)  
Old 02-14-2005
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
how do you transfer the file(s)?
what's the exact syntax of the command you're using?
  #3 (permalink)  
Old 02-14-2005
worf52 worf52 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 3
Generally I am just using an mput * from a script because there could be one or 100 files. I did try and use a put with the name in quotes but windows still stripped the leading blanks. A windows support person here told me that it will strip leading blanks and that I might be able to escape the blanks to preserve them but he could not remember what that escape sequence was.
  #4 (permalink)  
Old 02-14-2005
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
I was able to 'get' a file with blanks: originating from Windows and get-ting it from Sun/Solaris. I understand it's a different "direction", but....

You can try to "escape" your blanks with '\':
\ \ \twoBlanksBefore.txt
  #5 (permalink)  
Old 02-14-2005
worf52 worf52 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 3
I tried the \ but that just changed the directory the file got put into.
  #6 (permalink)  
Old 02-14-2005
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511
worf52 !

I tried the reverse ... ;
From windows to unix (AIX) and mget *xyz
where xyz file is having leading spaces.

It works good.

You may try that option.
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 08:54 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