- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP Scripts
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
01-10-2001 08:30 AM
01-10-2001 08:30 AM
FTP Scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2001 08:40 AM
01-10-2001 08:40 AM
Re: FTP Scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2001 09:03 AM
01-10-2001 09:03 AM
Re: FTP Scripts
The following can be in your script that does the automatic ftp. You can take out the redirection to $LOGFILE, that just gives you a log of what is occurring. It is nice for debugging though. The '$ eft' executes the eft macro that is defined in the .netrc file. The .netrc file is included below.
ftp -i -v 1xxx.xxx.xxx.xxx >> $LOGFILE 2>&1 << ENDFTP
$ eft
ENDFTP
***************
contents of .netrc file
*****************
machine xxx.xxx.xxx.xxx login username password user_password
macdef eft
binary
mput filenames
put filename
quit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2001 09:06 AM
01-10-2001 09:06 AM
Re: FTP Scripts
Take a look at this thread and the threads it references for some different ways to create FTP scripts:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x82dff841489fd4118fef0090279cd0f9,00.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2001 09:30 AM
01-10-2001 09:30 AM
Re: FTP Scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2001 02:00 PM
01-11-2001 02:00 PM
Re: FTP Scripts
why do all make it so difficult? Inside ".netrc" is exactly
one macro that will be executed automagically, and its
name is "init".
Try a ".netrc" like
machine MMM login uuu password PPP macdef init
cd /foreign-dir
lcd /local-dir
bin
prompt
mget *
quit
It MUST end with an empty line (all macros have to).
HTH,
Wodisch