- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftp inside a unix script to an nt server
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
Discussions
Discussions
Forums
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
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
тАО08-31-2000 08:17 AM
тАО08-31-2000 08:17 AM
ftp $sysname
user "$username" "$passwd"
put filename PATH
bye
I have tried this numerous different ways I am unable to get past the login into the nt server . When I run the ftp command from the command line everything works perfect. Does anyone know the best way to do this?
Solved! Go to Solution.
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 08:22 AM
тАО08-31-2000 08:22 AM
Re: ftp inside a unix script to an nt server
See man ftp.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 08:22 AM
тАО08-31-2000 08:22 AM
Re: ftp inside a unix script to an nt server
Here is short (not complete) script that should help you get started:
ftp -n -v $HOST << ENDFTP
user
getput
ENDFTP
Lots of additional options can be placed into the script. This would be a minimum to get working.
- Tags:
- here doc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 08:24 AM
тАО08-31-2000 08:24 AM
Re: ftp inside a unix script to an nt server
ftp -n $sysname << EOD
EOD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 08:34 AM
тАО08-31-2000 08:34 AM
Re: ftp inside a unix script to an nt server
ftp $sysname << EOD
user "$username" "$passwd"
cd PATH
put filename
quit
EOD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 08:40 AM
тАО08-31-2000 08:40 AM
Re: ftp inside a unix script to an nt server
Specify ftp -n
For a good range of examples and options in constructing ftp scipts, see:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x00517e990647d4118fee0090279cd0f9,00.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 08:43 AM
тАО08-31-2000 08:43 AM
Solutionmachine
words not in <> are literals, the <> fill in with you parameters. The .netrc file MUST be permits of read only for the owner chmod 400 .netrc
- Tags:
- .netrc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 09:54 AM
тАО08-31-2000 09:54 AM
Re: ftp inside a unix script to an nt server
You can still use the inline redirection (here document) to encode the file transfer commands, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 10:00 AM
тАО08-31-2000 10:00 AM