09-27-2005
Use a script so you can set a variable -
example (note that it doesn't have DATE, but you can easily set that up and change it to your needs)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I had written the following script to transfer the files thru FTP.
But it throws me some error after I run the program. I guess its throwing error because of the path.
Do help me.
Thanks
cd /home/psv
find . -name '*.ksh' -print > /home/psv/ftpbatch/onefile
cd... (2 Replies)
Discussion started by: mahalakshmi
2 Replies
2. Shell Programming and Scripting
Hi folks,
Small but interesting issue.
I have 15 files in a directory with the same name as discribd below.
refresh_20090407045220.dat
refresh_20090407051445.dat
refresh_20090407052138.dat
refresh_20090407064528.dat
refresh_20090407064654.dat
refresh_20090407065012.dat... (9 Replies)
Discussion started by: Haque123
9 Replies
3. Filesystems, Disks and Memory
Hi ,
We are facing a weird problem in our project. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->. Issue here is.. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the... (2 Replies)
Discussion started by: kishorepotta
2 Replies
4. Shell Programming and Scripting
Dear ALL
i had a file name called test.log witch contains 300 archives log files.
so how can i give the test.log as a input to the ftp script
please let me know
Thank you (9 Replies)
Discussion started by: paddyforum
9 Replies
5. Shell Programming and Scripting
Hi,
I have to transfer the files from one unix box to abnother. Below is the function i have written -
file_ftp ()
{
#for inFile in `cat /home/rgupta/list-test.txt`
#do
inFile=abc.arch.gz
FILETYPE=$inFile
ftp -in $GATEWAY1 <<!
user $USERID1 $PASSWD1
... (3 Replies)
Discussion started by: ravigupta2u
3 Replies
6. Shell Programming and Scripting
Hi,
Currenty I am transfering the files which are in list-test.txt. Below is the code for same -
file_ftp ()
{
while read inFile
do
#inFile=abc.arch.gz
FILETYPE=$inFile
ftp -in $GATEWAY1 <<!
user $USERID1 $PASSWD1
lcd $PICKUPDIR
cd $DROPDIR1
bin
... (1 Reply)
Discussion started by: ravigupta2u
1 Replies
7. Shell Programming and Scripting
iam using mget *.* too get all files in FTP
iam checking the FTP Server every day for the new files(there are 100s every day) and iam doing *.*
by doing so iam getting the old files also(it overwriting the old files) ......
how can i get only the new files...... from FTP (4 Replies)
Discussion started by: nani1984
4 Replies
8. Shell Programming and Scripting
Hi ,
I am new to shell scripting I was planning to write a script that will FTP files to destination folder..so which approach should I follow the ftp one or sftp one or scp one and which one one of them is most secure and fastest one..? (1 Reply)
Discussion started by: rahul125
1 Replies
9. Shell Programming and Scripting
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies
10. UNIX for Beginners Questions & Answers
How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies
LEARN ABOUT X11R4
ftpconfig
ftpconfig(1M) System Administration Commands ftpconfig(1M)
NAME
ftpconfig - set up anonymous FTP
SYNOPSIS
ftpconfig [ftpdir]
ftpconfig -d ftpdir
DESCRIPTION
The ftpconfig script is executed by the super user to set up anonymous FTP. Anonymous FTP allows users to remotely log on to the FTP server
by specifying the user name ftp or anonymous and the user's email address as password. The anonymous users are logged on to the FTP
Server and given access to a restricted file area with its own file system root. See chroot(2). The FTP area has its own minimal system
files.
This command will copy and set up all the components needed to operate an anonymous FTP server, including creating the ftp user account,
creating device nodes, copying /usr/lib files, and copying timezone data. The passwd and group files set up have been stripped down to
prevent malicious users from finding login names on the server. The anonymous file area will be placed under ftpdir. If the ftp user
account already exists, then the current FTP area is used, and the system files in it are updated. All other files are left untouched. This
command should be run to update the anonymous FTP area's configuration whenever a system patch is installed, or the system is upgraded.
OPTIONS
-d Create a new or update an existing ftpdir without creating or updating the ftp user account. Use this option when creating guest
FTP user accounts.
OPERANDS
The following operands are supported:
ftpdir The absolute pathname of the directory under which the anonymous FTP area is set up.
EXIT STATUS
The following exit values are returned:
0 Successful completion
1 Improper usage of the command
2 Command failed
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWftpu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
ftpaddhost(1M), in.ftpd(1M), useradd(1M), chroot(2), attributes(5)
SunOS 5.10 1 May 2003 ftpconfig(1M)