File: qftp.html

package info (click to toggle)
ftplib 3.1-1-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 648 kB
  • ctags: 597
  • sloc: ansic: 2,990; python: 152; makefile: 149; sh: 30
file content (94 lines) | stat: -rw-r--r-- 2,902 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<html><head><title>qftp</title></head>
<body>

<h1>qftp</h1>

<p><i>qftp</i> is a utility that performs file transfers using
<i>ftplib</i> based on instructions presented on the command line.

<h2>Format</h2>

<pre>
    qftp &lt;action&gt; &lt;host&gt; [ -l user [ -p pass ] ] { options/files }...

    Actions: send, get, dir, list, rm

    Options:
        -v level        Set verbosity
        -r rootpath     Change remote working directory
	-m umask        Set umask for created files
        -a | -i         Set ascii/image transfer mode
</pre>

<dl>

<dt>action
<dd>Specifies what <i>qftp</i> is to do.  <i>qftp</i> can <b>send</b>
files to a remote system, <b>get</b> files from a remote system, remove
(<b>rm</b>) files from a remote system, or retreive a <b>dir</b>ectory
of files or a <b>list</b> of files on a remote system.

<dt>host
<dd>Specifies the name of the remote system.  An alternate port may be
specified by appending a colon and the port name or number to the host
name.

<dt>-l user
<dd>Specifies the username to log in with on <b>host</b>.

<dt>-p pass
<dd>Specifies the password to log in with on <b>host</b>.

<p>If <b>user</b> is not specified, <i>qftp</i> will use
<b>anonymous</b>.  If <b>pass</b> is also not specified, <i>qftp</i> 
attempts to build a password from the translation of the environment
variable "USER" and the string returned by gethostname() separated by an
"@".

<dt>-v level
<dd>Specifies the verbosity level.  A level of 1 will cause <i>qftp</i>
to display messages indicating successful transfers.  A level of 2 will
cause FTP protocol responses to be displayed.  A level of 3 will cause
FTP protocol commands to be displayed.

<dt>-r rootpath
<dd>Sends a 'change directory' request to the remote server.  All
subsequent file names on the command line will be parsed relative to this
new directory.

<dt>-m umask
<dd>Sends a request to change the umask to the remote server.  This may
not be supported by all servers.  It is implemented using the 'SITE'
command in the FTP protocol.

<dt>-a
<dd>Requests that subsequent files be sent in ascii mode.

<dt>-i
<dd>Requests that subsequent files be sent in image mode.

</dl>

<p><i>qftp</i> may optionally be invoked through a softlink.  <i>qftp</i>
searches the command which invoked it for 'send', 'get' or 'dir' and, if
found, performs the requested function.  In this case, leave off the
<b>action</b> argument on the command line.

<p>For example; I use the following softlinks:

<pre>
    ln -s qftp ftpsend
    ln -s qftp ftpget
    ln -s qftp ftpdir
    ln -s qftp ftplist
    ln -s qftp ftprm
</pre>

<p> and then invoke transfers with 'ftpsend' instead of 'qftp send', etc.

<p>If no file names are specified on the command line, <i>qftp</i> will
read file names from stdin.  Use your favorite utility to generate a list
of files to send/retreive or type them interactively.

</body>
</html>