- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP and wildcards
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
03-28-2001 11:44 AM
03-28-2001 11:44 AM
FTP and wildcards
Maybe some has some suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 11:47 AM
03-28-2001 11:47 AM
Re: FTP and wildcards
mput *.dat
If it is in a file you may have to delimit the asterik:
mget \*.dat
mput \*.dat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 12:06 PM
03-28-2001 12:06 PM
Re: FTP and wildcards
FTP> prompt off
FTP> mget file*.dat
This will turn interactive mode off which will prevent you from having to keep pressing y to confirm each file transfer. And thats all there is to it!
Chad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 09:56 PM
03-28-2001 09:56 PM
Re: FTP and wildcards
ftp -i < commandfile
With -i option FTP doesn't ask to confirm file transfer
commandfile is a text file and contains ftp commands e.g.:
open RemoteHost
mput *.dat
mput file??.txt
close
bye
As you know, don't forget machine, login and password in .netrc file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2001 10:23 AM
03-31-2001 10:23 AM
Re: FTP and wildcards
read the man-page for "netrc" and create a "~/.netrc"
for the user under which account the crontab'ed ftp
is to ru:
machine TARGET login USER password SECRET macdef init
cd /target
lcd /source
prompt
mput *
quit
The empty line at the end is needed and the permissions
should be "400" or "600" or the command "ftp" will not
use it. "TARGET" is the target-machin name, "USER" is the
user-account on the target-machine, "SECRET" his/her
password (and instead of "mput" you might use "mget"
for retrieving files from there).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 09:43 PM
04-02-2001 09:43 PM
Re: FTP and wildcards
any one know why we can't copy multiple folders using ftp's command "mput *"
it gives error message,
"is not a flat file " .
regards
vijay