- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP Automation (Script) Inquiry
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
07-16-2004 07:00 AM
07-16-2004 07:00 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 07:05 AM
07-16-2004 07:05 AM
Solution-v is for verbose
-n is to disable the auto-login.
# File Name : ftpprov.sh
#
ftp -v -n >/home/batchjob/ftpprov.log << EOJ
open 10.10.2.10
user
cd prod
ascii
put /general/todspl.dat provfe
Hope this provides some direction.
Jim
close
bye
EOJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 07:09 AM
07-16-2004 07:09 AM
Re: FTP Automation (Script) Inquiry
ftp -v -n >/home/batchjob/ftpprov.log << EOJ
open 10.10.2.10
user
cd prod
ascii
put /general/todspl.dat provfe
close
bye
EOJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 07:18 AM
07-16-2004 07:18 AM
Re: FTP Automation (Script) Inquiry
I've been away so long I've forgotten how to cut/paste/reply at the same time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 07:19 AM
07-16-2004 07:19 AM
Re: FTP Automation (Script) Inquiry
You can also use the following:
In the home dir of the user, which runs ftp the file called .netrc should be created. The file's example is below, after "macdef init" you may write all ftp commands:
machine ftp_server_name
login usern
password PASSWD
macdef init
asci
cd incoming
lcd /tmp
put swlist.out
quit
After this the user runs ftp ftp_server_name and that's all
HTH