- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP to another HP machine; auto logon
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
03-01-2002 05:12 AM
03-01-2002 05:12 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 05:16 AM
03-01-2002 05:16 AM
Re: FTP to another HP machine; auto logon
You can use the .netrc file in the home directory for the user. you must put in the file:
machine machinename login username password userpassword
And thats all.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 05:16 AM
03-01-2002 05:16 AM
Re: FTP to another HP machine; auto logon
echo "
open hostname
user username password
put file
close
" | ftp -i -n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 05:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 05:22 AM
03-01-2002 05:22 AM
Re: FTP to another HP machine; auto logon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 05:58 AM
03-01-2002 05:58 AM
Re: FTP to another HP machine; auto logon
machine, login, and password are keywords. machinename is the name of the server you want to connect to.
man netrc for more info.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 06:00 AM
03-01-2002 06:00 AM
Re: FTP to another HP machine; auto logon
ftp -inv transrva <
bin
lcd dir
cd dir
mput *
bye
EndFTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 06:13 AM
03-01-2002 06:13 AM
Re: FTP to another HP machine; auto logon
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3e6050011d20d6118ff40090279cd0f9,00.html
<< begin quote >>
Are you running the ftp script from www's crontab? Or are you running it from root's crontab (su'ing to www)?
It will work if you use www's crontab but "su - www -c ftpscript" in root's crontab is going to fail. man netrc says:
If the .netrc file contains password or account information for use other than for anonymous ftp, its owner must match the effective user ID of the current process. Its read, write, and execute mode bits for group and other must all be zero, and it must be eadable by its owner. Otherwise, the file is ignored.
I think that may be your problem. I don't know how to correct your issue other than to allow www to run cron (/usr/lib/cron/cron.allow).
<< end quote >>
Unfortunately for Vishwa my reply didn't help. But I thought you may run into it so...
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 06:38 AM
03-01-2002 06:38 AM
Re: FTP to another HP machine; auto logon
If the two HP machines are within the same LAN/WAN and not over the internet, then you can use "rcp", which is a LOT easier to script than "ftp".
Now if you MUST proceed with "ftp", then I suggest you use "perl's" FTP modules that are easy to use:
Look at Clay's answer:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x47f235067c18d6118ff40090279cd0f9,00.html
live free or die
harry