HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script for FTP
Operating System - HP-UX
1837785
Members
3985
Online
110119
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
05-28-2007 04:49 PM
05-28-2007 04:49 PM
Script for FTP
hi every one for the support through this forum i need a script that i need for logfiles. I need to FTP the files through the cron job to run on Windows Server through the Unix (Solaris 9 ). please anyone who has any related script for the same i have no idea of scripting as i am new on system Administration and this is a task given to me from my senior.
hope will get some good response.
Thanks in Advance
Mohammad Sanaullah
hope will get some good response.
Thanks in Advance
Mohammad Sanaullah
Alive
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 05:10 PM
05-28-2007 05:10 PM
Re: Script for FTP
Hi,
# cat /dir/input
/usr/bin/ftp -v -n > /var/tmp/ftpscript.log 2> /var/tmp/ftpscript.err < open servername.domain
user username password
prompt
cd /ddir
bin
mput file*
ls /tmp
quit
EOF
sh /dir/input (run the script input)
Use the above script on the cron. It will give two files in the /var/tmp (error and log) so that you can see what it was doing when the ftp started. The username is the userid for the ftp session and the password is the original passwd.
Regards,
Rasheed Tamton.
# cat /dir/input
/usr/bin/ftp -v -n > /var/tmp/ftpscript.log 2> /var/tmp/ftpscript.err <
user username password
prompt
cd /ddir
bin
mput file*
ls /tmp
quit
EOF
sh /dir/input (run the script input)
Use the above script on the cron. It will give two files in the /var/tmp (error and log) so that you can see what it was doing when the ftp started. The username is the userid for the ftp session and the password is the original passwd.
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 06:46 PM
05-28-2007 06:46 PM
Re: Script for FTP
Shalom Mohammad,
Welcome to Systems administration.
The ftp method provided will work but ftp by its design is not secure.
This procedure requires you to hard code a password into a script.
A better solution would be to install openssh secure shell on your Unix server, exchange public keys between these hosts.
If this is done, you will have a secure encrypted authentication, the ability to do the work with cron and no security problems.
SEP
Welcome to Systems administration.
The ftp method provided will work but ftp by its design is not secure.
This procedure requires you to hard code a password into a script.
A better solution would be to install openssh secure shell on your Unix server, exchange public keys between these hosts.
If this is done, you will have a secure encrypted authentication, the ability to do the work with cron and no security problems.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP