- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp 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
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
тАО05-22-2002 07:13 PM
тАО05-22-2002 07:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2002 07:23 PM
тАО05-22-2002 07:23 PM
SolutionHave a look at these posting:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x83e45f260cafd4118fef0090279cd0f9,00.html
There is also some interesting information that can be found in the 'netrc' man pages.
Cheers
~Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2002 07:25 PM
тАО05-22-2002 07:25 PM
Re: ftp question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2002 07:29 PM
тАО05-22-2002 07:29 PM
Re: ftp question
#!/bin/ksh
[[ $# != 5 ]] &&
{ echo "Usage: $0
{ echo "user $1 $2
cd $5
mput $4
quit" ; } | ftp -i -n $3
You would run it as such ..(say you call your script "autoput".
# ./autoput skchan mypassword mars.abc.com fileA* dirA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2002 07:32 PM
тАО05-22-2002 07:32 PM
Re: ftp question
There are many exmaples of this, here are some to do with scripting. If these aren't enough suggest using the search bar to the left <-- and lookf for 'ftp scripts'. You will find that there are many.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfbc0854994d9d4118fef0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x82dff841489fd4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2002 08:14 PM
тАО05-22-2002 08:14 PM
Re: ftp question
You can use ftp -i -n < file.
"file" will contain:
open
user
commands
commands
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2002 09:47 PM
тАО05-23-2002 09:47 PM
Re: ftp question
ftp -i -n <<@
open $hostname
user $login $passw
lcd $targetdir
cd $sourcedir
mget *
close
quit
@