- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP question
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
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
09-18-2008 11:13 PM
09-18-2008 11:13 PM
FTP question
I have this task which needs to do FTP's from HPUX > Windows and HPUX > HPUX servers.
I've found Clay's ftpput.pl and ftpget.pl, all's doing well with these scripts. There's just one requirement which I can't get the scripts to produce - and that is to delete multiple remote files without performing transfers
On an ordinary FTP command it would look like this:
-----------------------------------
user $LOGNAME $PASSWD
bin
cd $DIRECTORY
mdele * <<<<--- This bit
bye
-----------------------------------
TIA!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2008 02:04 AM
09-19-2008 02:04 AM
Re: FTP question
yes you can used mdelete into your script
It should be mdelete not mdele
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2008 04:27 AM
09-19-2008 04:27 AM
Re: FTP question
All ftp commands can be shortened down to a few characters as long as they can be unique and parsed out from other commnads that begin with the same character(s). In this case the "mdelete" command can be shortened down to "mde" (mdir also starts with "md"). If you type "md" at the ftp prompt you get "ambiguous command error".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2008 04:35 AM
09-19-2008 04:35 AM
Re: FTP question
I suggest you examine the documentation accompanying Perl's Net::FTP module:
http://search.cpan.org/~gbarr/libnet-1.22/Net/FTP.pm
You will find that there is a 'delete' method and 'rmdir' method. The later can be made recursive.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2008 06:25 AM
09-19-2008 06:25 AM
Re: FTP question
You're talking about _which_ FTP client
program? And the questioner is using what?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2008 01:04 PM
09-19-2008 01:04 PM
Re: FTP question
program? And the questioner is using what?T
The questioner is using "mdele" instead of "mdelete" so I am sure he is using and is aware of the shortened commands.