12-10-2007
Quote:
Originally Posted by
bikas_jena
I think you can get hint from the following example
syntax
======
ftp -s:test.scr
test.scr file conatins the following things
===============================
open <servername>
userid
password
cd /home/hypadm/ctl
prompt
mget *
bye
The -s option works in Windows, but not in UNIX. I tried that before I posted.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to automate a process in one of two ways:
1) ftp .txt files from a unix server to a Windows 2000 server. I want to do this in a script. Can I supply the login and password to the Windows server inside the script?
2) I tried this and failed: sftp .txt files from the unix server to... (2 Replies)
Discussion started by: gbernard
2 Replies
2. Answers to Frequently Asked Questions
One of our most frequent questions is how to automate ftp transfers. There are several approaches. Since I'm writing this post, we will start with my favorite technique. :)
In Automated FTP task I present a simple example of my ksh co-process technique. And note that later in this thread I... (0 Replies)
Discussion started by: Perderabo
0 Replies
3. Shell Programming and Scripting
Good Morning,
I just would like to know what is wrong with my script. I am trying to use a for loop on my ftp command but the part that pipes the ftp information is reported in unix as error. Here's my script :
#!/bin/ksh
# other parts of the script here....
# get all ORD* files... (10 Replies)
Discussion started by: negixx
10 Replies
4. Shell Programming and Scripting
Hi guys,
I'm trying to create an ftp script that will read in a value from input, then search for files with the input value, and then ftp the files..
So far I've got my read answer set up, and it'll ls -lrt out my files with the value read answer var I given it...
My question is, what... (14 Replies)
Discussion started by: Jazmania
14 Replies
5. Shell Programming and Scripting
Can some one help with script to track ftp logins on AIX server.. (1 Reply)
Discussion started by: ddk2oo5
1 Replies
6. Shell Programming and Scripting
Hi Everybody,
I have come across a problem while doing FTP using shell scripting. So I request any of you can give some idea of how to go about solving the problem but i request you not to give the solution please. Because i'm a java developer newly into Unix shell progrmming and am very enthu... (1 Reply)
Discussion started by: RSC1985
1 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to do an FTP script that will read from a list of files and send only the files in that list.
Would this work? Does anyone have anything simpler.
ftp -nv <<EOF
open server
user username password
get $(nawk -F_ -f bbb.awk Filelisting.txt)
EOF (5 Replies)
Discussion started by: bbbngowc
5 Replies
8. Shell Programming and Scripting
Hi,
Please can you tell me the script to transfer file from server A to Server B (1 Reply)
Discussion started by: e1994264
1 Replies
9. Shell Programming and Scripting
Hi Guys,
Good day ULF! I have a general "auto-ftp" code which looks something like this:
#!/bin/sh
cd $1
ftp -v -n $2 << EOF
user $3 $4
prompt
cd $5
bin
mput $6
quit
EOF
This works pretty well, but I'm thinking of how can I make a code by maybe including on this code, for... (5 Replies)
Discussion started by: rymnd_12345
5 Replies
10. UNIX for Dummies Questions & Answers
I dont have enough bits to post in emergency, but I have an urgent FTP issue. A client of ours wants us to pull files from his server onto our server at which point we can process it. I ask a friend what to do, but I was just give the things to do, not how to do it.
I havent written a Unix... (4 Replies)
Discussion started by: MJCreations
4 Replies
LEARN ABOUT DEBIAN
imtest
IMTEST(1) General Commands Manual IMTEST(1)
*
NAME
imtest - interactive IMAP test program
SYNOPSIS
imtest [ -t keyfile ] [ -p port ] [ -m mechanism ]
[ -a userid ] [ -u userid ] [ -k num ] [ -l num ]
[ -r realm ] [ -f file ] [ -n num ] [ -s ] [ -q ]
[ -c ] [ -i ] [ -z ] [ -v ] [ -I file ] [ -x file ]
[ -X file ] [ -o option=value ] hostname
DESCRIPTION
imtest is a utility that allows you to authenticate to a IMAP or IMSP server and interactively issue commands to it. Once authenticated you
may issue any IMAP or IMSP command by simply typing it in. It is capable of multiple SASL authentication mechanisms and handles encryption
layers transparently. This utility is often used for testing the operation of a imsp or imap server. Also those developing IMAP clients
find it useful.
OPTIONS
-t keyfile
Enable TLS. keyfile contains the TLS public and private keys. Specify "" to negotiate a TLS encryption layer but not use TLS
authentication.
-p port
Port to connect to. If left off this defaults to imap as defined in /etc/services.
-m mechanism
Force imtest to use mechanism for authentication. If not specified the strongest authentication mechanism supported by the server is
chosen. Specify login to use the LOGIN command instead of AUTHENTICATE.
-a userid
Userid to use for authentication; defaults to the current user. This is the userid whose password or credentials will be presented
to the server for verification.
-u userid
Userid to use for authorization; defaults to the current user. This is the userid whose identity will be assumed after authentica-
tion. NOTE: This is only used with SASL mechanisms that allow proxying (e.g. PLAIN, DIGEST-MD5).
-k num Minimum protection layer required.
-l num Maximum protection layer to use (0=none; 1=integrity; etc). For example if you are using the KERBEROS_V4 authentication mechanism
specifying 0 will force imtest to not use any layer and specifying 1 will force it to use the integrity layer. By default the maxi-
mum supported protection layer will be used.
-r realm
Specify the realm to use. Certain authentication mechanisms (e.g. DIGEST-MD5) may require one to specify the realm.
-f file
Pipe file into connection after authentication.
-n num Number of authentication attempts; default = 1. The client will attempt to do SSL/TLS session reuse and/or fast reauth (e.g.
DIGEST-MD5), if possible.
-s Enable IMAP over SSL (imaps).
-q Enable IMAP COMPRESSion (before the last authentication attempt).
-c Enable challenge prompt callbacks. This will cause the OTP mechanism to ask for the the one-time password instead of the secret
pass-phrase (library generates the correct response).
-i Don't send an initial client response for SASL mechanisms, even if the protocol supports it.
-I file
Echo the PID of the running process into file (This can be useful with -X).
-x file
Open the named socket for the interactive portion
-X file
Like -x, only close all file descriptors & daemonize the process.
-o option=value
Set the SASL option to value.
-v Verbose. Print out more information than usual.
-z Timing test.
SEE ALSO
imapd(8)
CMU
Project Cyrus IMTEST(1)