Solved

ftp (ntrans) command

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
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 how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

758 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

21 Experts available now in Live!

Get 1:1 Help Now