AIX WABI and LAN SERVER

ITEM: RTA000070611



I'm currently running some tests for a customer, with WABI and OS/2             
Lan Server. We have installed TCP/IP and NFS for OS/2, made the OS/2            
machine an NFS Server, exported a directory containing Windows                  
applikations and mounted it on a RS/6000 with WABI. All the filenames           
are shown with capital letters, when I do a "ls" in AIX. I beleive              
this is due to differences between AIX and OS/2 filsystems.                     
Unfortunately, WABI does not recognize these filenames. I can get               
around this problem by making a link, from a lowercase filename to              
to the NFS files, but this is not a good sollution for the customer.            
My question is:                                                                 
Is there any way I can make WABI ignore upper and lowercase filenames?          
                                                                                
                                                                                
ANSWER                                                                          
   You wish to convert your upper case file names to lower case.               
   The following is a shell script to accomplish this task.  I chose            
   to use "tr" (Berkely version) rather than "xargs", because "tr"              
   is much better at this task.  I chose the Berkely version of tr,             
   since it does not require the single quotes.                                 
                                                                                
   To run, create the script in the directory where all the files               
   exist, chmod the script, and execute it.  It will copy itself and            
   all other files in that directory to the subdirectory.  There are a          
   couple of "niceties" that could be added, but I'll leave that up to          
   you.                                                                         
                                                                                
#¢/bin/ksh                                                                      
                                                                                
# This shell script will copy all the files in the current directory to         
# a subdirectoy called "nocaps", AND change all capital letters in             
# each filename to lower case.                                                  
                                                                                
/bin/mkdir nocaps            # causes error message if directory exists         
                                                                                
for i in *                                                                      
  do                                                                            
    FN=`echo $i | /usr/ucb/tr A-Z a-z`;                                         
    echo $FN                                                                    
    /bin/cp $i ./nocaps/$FN; # causes error msg for trying to cp dir.           
done                                                                            
                                                                                
S e a r c h - k e y w o r d s:                                                  
UPPER CASE TO LOWER CASE FILENAMES                                              
                                                                                
                                                                               


WWQA: ITEM: RTA000070611 ITEM: RTA000070611
Dated: 05/1996 Category: ITSAI6000WA
This HTML file was generated 99/06/24~12:43:26
Comments or suggestions? Contact us