09-05-2008
i did it like this but it getting stuck
FTPSERVER="100.48.143.13"
FTPLOGIN="nali"
FTPPASS="sun1123"
FTPDIR="class"
FILE="file1.txt"
ftp -n -i $FTPSERVER <<EOF
user $FTPLOGIN $FTPPASS
cd $FTPDIR
put $FILE
quit
EOF
--------------------------------------------------------------------------
what to do
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have been using ftp to transfer files back and forth between windows and unix machines. But everytime i started the ftp session from the windows machine.
I have a question why I am not able to connect to the same windows machine from the same unix machine.
How do I do this?
... (11 Replies)
Discussion started by: oldtrash
11 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
How to FTP an excel format file located in windows to unix using shell script.Any particular commands we have to use?
Thanks& Regards,
rrs (4 Replies)
Discussion started by: rrs
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I know that there should be a FTP server in Windows or a FTP listener daemon running in windows. Iam a beginner. May I know, what setup need to be done on Windows/unix end so that, a file can be transferred using sftp/scp from unix to windows.
Thanks in Advance. (2 Replies)
Discussion started by: deepakwins
2 Replies
4. UNIX for Dummies Questions & Answers
Good Morning,
I am currently having a setup of running a batch file in windows to ftp certain files to unix and after that one i login to a unix box to manually run a script to clean up those files and combine them into one and get go back to windows to run another batch of file to get the... (4 Replies)
Discussion started by: ryan_estiya
4 Replies
5. Shell Programming and Scripting
i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies
6. Shell Programming and Scripting
will this work, knowing that the file is in a directory in windows.. It is
going from a drirectory in windoxs to UNIX \
# Error Handling Function
function ErrorHandle
{
# if type is 1, then the file does not exist or unreadable
if
then
echo "File... (5 Replies)
Discussion started by: rechever
5 Replies
7. Windows & DOS: Issues & Discussions
Hi gurus,
I need to FTP files from a UNIX box to a WINDOWS server. FTP is running on the WINDOWS server.
I am able to log in to the WINDOWS machine with FTP, however when i do a dir in the ftp prompt i get the following
200 PORT command successful.
150 Opening ASCII mode data connection for... (3 Replies)
Discussion started by: ladarlsan
3 Replies
8. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
9. Shell Programming and Scripting
Hi, I am new to this subject.....Can someone please help me out with the script...
unix usernm "sdhftst"
unix pwd "chsd13"
windows usernm "dfghtst"
windows pwd "chsd13"
path..../xxx/xxxxx/xxxxxx/xxxxxxx
please can u get me a script...its only one file to get ftp.
Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies
10. Shell Programming and Scripting
Hi,
Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting?
If so what command i need to use.
thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies
LEARN ABOUT DEBIAN
sc_warts2text
SC_WARTS2TEXT(1) BSD General Commands Manual SC_WARTS2TEXT(1)
NAME
sc_warts2text -- simple dump of information contained in a warts file.
SYNOPSIS
sc_warts2text [-d ip2descr-file] [file ...]
DESCRIPTION
The sc_warts2text utility provides a simple dump of information contained in a sequence of warts files. The output is the same as that which
would have been provided by scamper if the text output option had been chosen instead of the warts output option when the data was collected.
The options are as follows:
-d ip2descr-file
specifies the name of a file with IP-address, description mappings, one mapping per line. See the examples section for further
information.
While the output of sc_warts2text is structured and suitable for initial analyses of results, the format of the output is not suitable for
automated parsing and analysis as the output of sc_warts2text will change overtime with no regard to backwards compatibility. Analyses of
the contents of a warts file should be made using specialised programs which link against the scamper file API.
EXAMPLES
The command:
sc_warts2text file1.warts file2.warts
will decode and print the contents of file1.warts, followed by the contents of file2.warts.
The command:
gzcat file1.warts.gz | sc_warts2text
will print the contents of the uncompressed file supplied on stdin.
Given a set of IP-address, description pairs in a file name mappings.txt:
192.0.2.1 "foo"
192.0.2.2 "bar"
then the command gzcat file1.warts.gz | sc_warts2text -d mappings.txt will print the description associated with a given destination address
before each result is presented.
SEE ALSO
scamper(1), sc_wartsdump(1)
AUTHORS
sc_warts2text is written by Matthew Luckie <mjl@luckie.org.nz>.
BSD
October 15, 2010 BSD