Solved

ftp (ntrans) command

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now