07-20-2007
There isn't such from FTP command line, instead, you should rely on their extensions. Even when you turn on debug and verbose, no useful information of that matter will be printed. You can only change the type of transfer from ascii to binary and vice-versa.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm writing a script that takes a filename as an argument, which determines the "file type" of the file. I want to know if there is any command I can use to determine if a file is ASCII type, thanks all for giving a help. (11 Replies)
Discussion started by: popo
11 Replies
2. UNIX for Advanced & Expert Users
This is my worst nightmare in recent years!!!
I spent two days writing a proposal due tomorrow, ftp'ed the Word doc to a Unix machine in ASCII mode (i forgot to turn BIN on). Then I was trying to help a colleague download it and I accidently download the ASCII file back to the same dir on my... (1 Reply)
Discussion started by: venkir
1 Replies
3. Shell Programming and Scripting
I want to verify the file is Binary or ascii file and accordingly I want to switch the program with ret code
ie 0 or success and 1 for failure
Can any one help me is this a correct syntex...i am getting error
#!/bin/ksh
$file filename
if
echo "ascii fie Found"
else
echo " binary... (6 Replies)
Discussion started by: u263066
6 Replies
4. Shell Programming and Scripting
hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help
thanks in advance
satya (1 Reply)
Discussion started by: Satyak
1 Replies
5. Programming
Hi All,
Please suggest me how to read a binary file in text or ASCII format.
thanks
Nagendra (3 Replies)
Discussion started by: Nagendra
3 Replies
6. UNIX for Dummies Questions & Answers
Dear linux-unix users,
I hope that one of you will be able to help me.
How can I determine to which package a file or binary belongs to.
With solaris/linux package managers you can easely determine this but i cant find the way how to do this on tru64.
Any help would greatly be appreciated.... (0 Replies)
Discussion started by: Crazy_lenny
0 Replies
7. Shell Programming and Scripting
what is the diff between ascii and binary file.
my understand is that..
ascii file - has only line feed - \n in it
where as
binary file - has both line feed and carriage return in it- \r\n
is that correct.
also,what is the ksh command to identify whether it is a binary or ascii... (1 Reply)
Discussion started by: billpeter3010
1 Replies
8. Shell Programming and Scripting
Hi All,
I have a binary file which is being exported from a Database, and i need to convert that to ASCII format. How can i achieve that? And this solution should work for any file which is given to us; means they will give different files from different tables.
Thanks in advance. (8 Replies)
Discussion started by: baranisachin
8 Replies
9. Shell Programming and Scripting
Hi All ,
I have a mainframe file which contains the data in EBCDIC format.I have downloaded this file from mainframe to windows in binary format(unreadable raw data).Now I want convert this file to ASCII format(readable format data) through Unix command.I have tried iconv but that is not working... (2 Replies)
Discussion started by: STCET22
2 Replies
10. Shell Programming and Scripting
I need to convert a binary file which in encoded using base32 encoding technique and convert that into readible ASCII so that i can load the same in DB.
is there any command to do the same.
sample from the binary file lools like :
... (18 Replies)
Discussion started by: krk
18 Replies
TFTP(1) UNIX User's Manual TFTP(1)
NAME
tftp - IPv4 Trivial File Transfer Protocol client
SYNOPSIS
tftp [options...] [host]
DESCRIPTION
tftp is a client for the IPv4 Trivial file Transfer Protocol, which can be used to transfer files to and from remote machines, including
some very minimalistic, usually embedded, systems. The remote host may be specified on the command line, in which case tftp uses host as
the default host for future transfers (see the connect command below.)
OPTIONS
-v Default to verbose mode.
-V Print the version number and configuration to standard output, then exit gracefully.
COMMANDS
Once tftp is running, it issues the prompt tftp> and recognizes the following commands:
? command-name...
help command-name...
Print help information
ascii Shorthand for mode ascii.
binary Shorthand for mode binary.
connect host [port]
Set the host (and optionally port) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain connec-
tions between transfers; thus, the connect command does not actually create a connection, but merely remembers what host is to be
used for transfers. You do not have to use the connect command; the remote host can be specified as part of the get or put com-
mands.
get file
get remotefile localfile
get file1 file2 file3...
Get a file or set of files from the specified sources. A remote filename can be in one of two forms: a plain filename on the remote
host, if the host has already been specified, or a string of the form host:filename to specify both a host and filename at the same
time. If the latter form is used, the last hostname specified becomes the default for future transfers.
mode transfer-mode
Specify the mode for transfers; transfer-mode may be one of ascii (or netascii) or binary (or octet.) The default is ascii.
put file
put localfile remotefile
put file1 file2 file3... remote-directory
Put a file or set of files to the specified remote file or directory. The destination can be in one of two forms: a filename on the
remote host, if the host has already been specified, or a string of the form host:filename to specify both a host and filename at
the same time. If the latter form is used, the hostname specified becomes the default for future transfers. If the remote-direc-
tory form is used, the remote host is assumed to be a UNIX system or another system using / as directory separator.
quit Exit tftp. End-of-file will also exit.
rexmt retransmission-timeout
Set the per-packet retransmission timeout, in seconds.
status Show current status.
timeout total-transmission-timeout
Set the total transmission timeout, in seconds.
trace Toggle packet tracing (a debugging feature.)
verbose
Toggle verbose mode.
NOTES
The TFTP protocol provides no provisions for authentication or security. Therefore, the remote server will probably implement some kinds
of access restriction or firewalling. These access restrictions are likely to be site- and server-specific.
AUTHOR
This version of tftp is maintained by H. Peter Anvin <hpa@zytor.com>. It was derived from, but has substantially diverged from, an OpenBSD
source base, with added patches by Markus Gutschke and Gero Kulhman.
SEE ALSO
tftpd(8).
tftp-hpa 0.32 13 November 2001 TFTP(1)