Solved

ftp (ntrans) command

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem Imaging Computers With Clonezilla 2 90
reinstall 1 78
auto mounter on solaris 1 59
looking for unix program to search some keywords in side EAR WAR and JAR files 10 93
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 …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.

772 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