Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ftp (ntrans) command

Posted on 1997-04-09
2
Medium Priority
?
1,340 Views
Last Modified: 2013-12-16
I am connecting to a non-UNIX remote computer which
requires a different naming comvention.  I am invoking
FTP from the UNIX side.  I want to convert all lowercase
filenames (UNIX side) to uppercase filenames (non-UNIX side)
using ftp (NO SCRIPTS).
I tried the following command:

ntrans abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
     This should have converted all characters to uppercase.

The ntrans command will not work, using the above format.  
It only allows 16 characters to be converted.

If I type 'status' at the FTP prompt, the following is returned:

ftp> status
No proxy connection.
Mode: stream; Type: ascii; Form: non-print; Structure: file
Verbose: on; Bell: off; Prompting: off; Globbing: on
Store unique: off; Receive unique: off
Case: off; CR stripping: on
Ntrans: (in) abcdefghijklmnop (out) ABCDEFGHIJKLMNOP
              ^^^^ Only allows 16 chars. ^^^^^

QUESTION:
    Does anyone know how to format the ntrans command to
allow all 26 letters?

0
Comment
Question by:clemmons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
pxh earned 200 total points
ID: 1812003
Well, I went to the man page for ftp on my Solaris 2.5.1 system and it tells me:

Only 16 characters can be  translated  when  using  the ntrans  command  under ftp.  Use case (described above) if needing to convert the entire alphabet.

So it seems that indeed you cannot use ntrans, but as you see you should try the "case" command. Which does a mapping from local lower case to remote upper case letters.

Hope this helps,

Peter (pxh@mpe-garching.mpg.de)

0
 
LVL 2

Expert Comment

by:pxh
ID: 1812004
Test

0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question