- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftp help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 09:34 PM
08-30-2004 09:34 PM
ftp help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 12:09 AM
08-31-2004 12:09 AM
Re: ftp help
Are ftpserver and webserver Unix box?
Do you want to use manual transfert or automatic transfert?
If webserver is Unix box and use automatic transfert:
from webserver do:
ftp -i -n < "ftpfilename"
where filename is a file with ftp commands:
open ftpserver
users USERS PASSWD
binary
cd
mget *
mdelete *
bye
If you want to use manual command use
ftp ftpserver, then give username and password and use command like before.
If your webserver is a Windows box you can instal and use a graphic ftp client product (more are free) on your Windows box. It's easier to use.
Rgds
JMB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 12:39 AM
08-31-2004 12:39 AM
Re: ftp help
mdelete
mput or mget
If you are going to start on webserver then,
ftp -n
ftp> open account passwd
ftp> mget *
you have to give y to get every files
ftp> mdelete *
you have to give y to all files.
If you feel it is getting time then,
come r* commands.
On webserver
IF you are trying as root then,
echo + > /.rhosts
chmod 400 /.rhosts
Make the file on ftpserver too.
Now do as,
cd
rcp webserver:/dir/* .
It will copy at once then,
remsh webserver -l root -n "/usr/bin/rm -rf /directory/"
It is over now.
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 07:55 AM
08-31-2004 07:55 AM
Re: ftp help
ftp -n -v << endl >> log_file
open server name
user user_name user_password
prompt
lcd $Local_directory
cd $Remote_directory
mput XX*
mput XX*
mput ZZ*
quit
endl
1. log_file will have the information on the data sent.
2. Use the log_file to build your delete list.
3. Prompt toggles off the prompt on each put.
Things to note:
a. Username and Userpassword should never be hard coded. Look at .netrc for you unix box.
b. The log_file assumes you are sending from the box you wish to delete from.
c. If b. is reversed one would do the mget and wold have to build the read of the log_file to feed the ftp delete command.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 04:04 PM
08-31-2004 04:04 PM
Re: ftp help
1. ftp server keeps on getting files from diffrent servers , and also my web server keeps on downloading files from ftp server . so if i say mget *.* , after that mdelete *.*, there may be chances of deleting files which are not yet downloded .
what i want is , web server downloads files from FTP server , we should maintain a log and from that log , only downloaded files should be deleted from ftp server.
is it possible to use any loop in ftp ? look at my sample code , and pls advice me .
#bin/ksh
#local directory of webserver.
cd /tmptbs
ftp -inv servername<
#remote direcotry of ftp server
cd /corp/in
dir *.* remlist.tmp
mget *.*
for VAR in <
echo dele $VAR
EOT
bye
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2004 04:53 AM
09-01-2004 04:53 AM
Re: ftp help
As I noted before, the log_file would have the list of files eligible for deletion which could be used for your delete command in ftp.
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2004 08:51 AM
09-01-2004 08:51 AM