- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Problem with FTP
Operating System - Tru64 Unix
1753437
Members
5001
Online
108794
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
Discussions
Discussions
Forums
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
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-2003 02:29 AM
тАО11-03-2003 02:29 AM
Hi
I have an Alpha Server with Tru64 ver. 4.0 and I want to schedule a script that let me transfer files in mode no interactive. At first a thought in the following command
ftp -s parameter_file_name
But I relialized that this option (-s)not exist in the FTP that is installed with my version of Operating System.
So my question is, Is there a way to transfer a file in mode no interactive.
Thanks in advance!
I have an Alpha Server with Tru64 ver. 4.0 and I want to schedule a script that let me transfer files in mode no interactive. At first a thought in the following command
ftp -s parameter_file_name
But I relialized that this option (-s)not exist in the FTP that is installed with my version of Operating System.
So my question is, Is there a way to transfer a file in mode no interactive.
Thanks in advance!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2003 02:50 AM
тАО11-03-2003 02:50 AM
Re: Problem with FTP
You can try
ftp hostname << EOF
user username
password password
etc
etc
etc
EOF
I have never used it but something like that works, I'm sure of it
ftp hostname << EOF
user username
password password
etc
etc
etc
EOF
I have never used it but something like that works, I'm sure of it
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2003 04:12 AM
тАО11-03-2003 04:12 AM
Solution
Here is an example that works already several years.
It is included in a script that is started via cron.
ftp -n -v ftp.domain.com < user anonymous mymailadress@hp.com
prompt
cd /the_directory_I_prefer
get the_file_I_need
bye
EOF
Of course, I modified some directories and filenames. Modify them for your particular usage.
You can also use expect scripting. This gives you much more possibilities.
Here is a very simple one, without much error recovery, except the timeout.
Beware, it is not a secure solution !!!
#!/usr/local/bin/expect --
if $argc!=1 {
send_user "Usage: ftp-exp\n"
exit
}
set file "$argv"
set timeout 15
spawn ftp ftpsite@dom.com
expect "Name"
send "A_Login_ID\r"
expect "Password:"
send "My_password\r"
expect "ftp> "
send "cd /incoming\r"
expect "ftp> "
send "binary\r"
expect "ftp> "
send "get $file\r"
send "bye\r"
expect "bye."
exit
Hope this inspires.
Joris
It is included in a script that is started via cron.
ftp -n -v ftp.domain.com <
prompt
cd /the_directory_I_prefer
get the_file_I_need
bye
EOF
Of course, I modified some directories and filenames. Modify them for your particular usage.
You can also use expect scripting. This gives you much more possibilities.
Here is a very simple one, without much error recovery, except the timeout.
Beware, it is not a secure solution !!!
#!/usr/local/bin/expect --
if $argc!=1 {
send_user "Usage: ftp-exp
exit
}
set file "$argv"
set timeout 15
spawn ftp ftpsite@dom.com
expect "Name"
send "A_Login_ID\r"
expect "Password:"
send "My_password\r"
expect "ftp> "
send "cd /incoming\r"
expect "ftp> "
send "binary\r"
expect "ftp> "
send "get $file\r"
send "bye\r"
expect "bye."
exit
Hope this inspires.
Joris
To err is human, but to really faul things up requires a computer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2003 08:05 AM
тАО11-03-2003 08:05 AM
Re: Problem with FTP
Thanks everybody
Your suggestions were so useful, that rigth now my script is running from the cron, thanks again.
Regards!
Your suggestions were so useful, that rigth now my script is running from the cron, thanks again.
Regards!
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP