- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can't run FTP script in batch mode from HP900...
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
10-02-2001 08:03 AM
10-02-2001 08:03 AM
I want to run a script from HP9000(hp-ux 11.0),
which logs on to HP3000(MPE/iX 5.0) with
userid - 'user1.creative' , and password - 'passwd'.
And i want to FTP a file zones.data.creative from HP3000 to HP9000
But my following script is stopping at username - and i
have to enter the password, and ftp commands interactively.
my question is How to make my script to run in bach mode ?
$ ls ftp3k
ftp3k
$
--here is actuval script- ftp3k (on HP9000).
ftp 111.222.44.3
user user1.creative
userpass passwd
get zones.data.creative zones.dat
bye
it is running as following ( i am running this script from hp9000)
$ftp3k
Connected to 111.222.44.3.
220 HP ARPA FTP Server [A0009F07] (C) Hewlett-Packard Co. 1990
Name (136.140.44.3:oracle): -- stops here and looking for username
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 08:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 08:21 AM
10-02-2001 08:21 AM
Re: can't run FTP script in batch mode from HP9000 to HP3000
the basic fault is, that your script does not provide input to the ftp command.
In addition you should not pass passwords like this. Lookup how to set a .netrc file for your connection. Change your script to
ftp targethosts <
lcd targetdir
get filename
bye
EOF
The login-information will be taken from .netrc then.
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 10:12 AM
10-02-2001 10:12 AM
Re: can't run FTP script in batch mode from HP9000 to HP3000
Try this out,
ftp -n 111.222.44.3 <<-EndFTP
user user_name user_password
bin "or" ascii
cd /directory_if_any
get file_name1
get file_name2
.........
bye
EnfFTP
This should work.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 10:36 AM
10-02-2001 10:36 AM
Re: can't run FTP script in batch mode from HP9000 to HP3000
Great, I solved the FTP issue.
thank you.
Vasu.