Solved

ftp (ntrans) command

Posted on 1997-04-09
2
1,301 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 100 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

707 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