HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- netrc Password Prompt Problem
Operating System - HP-UX
1834261
Members
35799
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
11-03-2000 06:29 AM
11-03-2000 06:29 AM
Hi all,
I'm trying to ftp a file and wanting to use netrc to do this. My script is failing because it is looking for manual prompt at the login stage of ftp and I can't seem to find a way to this shut this prompt off. Any ideas anyone? Script is as follows:
#!/bin/ksh
cd /tmp
echo "machine y.y.y.y login xxxx password xxxx macdef init" > netrc
echo "cd /techsup/demon/sysinfo" >> netrc
echo "prompt off" >> netrc
echo "put demoninfo*" >> netrc
echo "quit" >> netrc
echo >> netrc
mv netrc /.netrc
chmod 600 /.netrc
ftp 195.99.161.11
rm /.netrc
When I run thus I get the
NAME (hostname:user):
ftp prompt which is looking for a manual entry??
I'm trying to ftp a file and wanting to use netrc to do this. My script is failing because it is looking for manual prompt at the login stage of ftp and I can't seem to find a way to this shut this prompt off. Any ideas anyone? Script is as follows:
#!/bin/ksh
cd /tmp
echo "machine y.y.y.y login xxxx password xxxx macdef init" > netrc
echo "cd /techsup/demon/sysinfo" >> netrc
echo "prompt off" >> netrc
echo "put demoninfo*" >> netrc
echo "quit" >> netrc
echo >> netrc
mv netrc /.netrc
chmod 600 /.netrc
ftp 195.99.161.11
rm /.netrc
When I run thus I get the
NAME (hostname:user):
ftp prompt which is looking for a manual entry??
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 06:37 AM
11-03-2000 06:37 AM
Re: netrc Password Prompt Problem
Hi
This automatic unattended ftp routine should do what you require.
ftp -n user
prompt
put
quit
End_of_Ftp
HTH
Paula
This automatic unattended ftp routine should do what you require.
ftp -n
prompt
put
quit
End_of_Ftp
HTH
Paula
If you can spell SysAdmin then you is one - anon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 06:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 06:45 AM
11-03-2000 06:45 AM
Re: netrc Password Prompt Problem
I suspect that this might be a name resolution issue. the name specified in machine (must resolve) and the IP address must reverse resolv to the same name. If you are using IP addresses only, maintain all references to host as IP addresses. If you are using names, make sure that the names resolve to the same either way ie.:
host is not the same as host.domain.com
host is not the same as host.domain.com
nothing wrong with me that a few lines of code cannot fix!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP