- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script Question
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
09-29-2006 08:20 AM
09-29-2006 08:20 AM
Hi all. I moved a production system today from an old L2000 to a new RP3410. The new RP3410 took the old ip address and user accounts/passwords. Everything is fine...except 1 little script. It uses a here document to ftp a file from this system to another...here's the snippet
ftp host <
ENDFTP
and here is the error that show up in cron
Error - incorrect permissions on /dev/tty.
Name (host:root): password missing from PASS command
Login failed.
Not logged in.
No passwords have changed. Any ideas?
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2006 08:24 AM
09-29-2006 08:24 AM
SolutionCreate a file on the machine that is going to run the script called .netrc in the home directory of the user, and then include the hostname and the password. (do man netrc for more info)
echo "machine machine_name login login_name password the_password" >> $HOME/.netrc
should do the trick.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2006 08:27 AM
09-29-2006 08:27 AM
Re: Script Question
So where is the user/password? Are you using a 'netrc' file? Did you port that file to your new machine?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2006 04:12 AM
09-30-2006 04:12 AM
Re: Script Question
Please compare the following: ~/.netrc and /etc/shells on the old and new servers.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 02:08 AM
10-02-2006 02:08 AM
Re: Script Question
Thx!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 02:09 AM
10-02-2006 02:09 AM