- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: need script to FTP file from UNIX to NT
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
11-26-2001 11:41 AM
11-26-2001 11:41 AM
Any help to get me started would be greatly appreciated.
Thanks,
Donna Yedziniak
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 11:44 AM
11-26-2001 11:44 AM
Re: need script to FTP file from UNIX to NT
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 11:50 AM
11-26-2001 11:50 AM
Re: need script to FTP file from UNIX to NT
if [ -f name_of_file ]
{more stuff goes here}
ftp -n -v >> ftpLOG' 2>> 'ftpLOG' <<-EOF
open address.of.your.host
lcd $directory_where_the_file_is
user username password
binary
put $ftp_file_name
quit
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 04:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 04:27 PM
11-26-2001 04:27 PM
Re: need script to FTP file from UNIX to NT
dl
Script to schedule in cron which will call Script I followed
by Script II
#! /bin/ksh
############################################################################
# Get the date/time for input on email if necessary. #
# If the file exists send it by calling your ftp script. #
# Else mail the date and time of failure to someone who cares. #
############################################################################
date > date_file
if [ -f /path/your_file_name ]
then
/usr/local/bin/ftp_myfile
else
mailx -s "File did not exist" dlamar@gottschalks.com < /path_name/date_file
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 04:28 PM
11-26-2001 04:28 PM
Re: need script to FTP file from UNIX to NT
dl
Script to schedule in cron which will call Script I followed
by Script II
#! /bin/ksh
############################################################################
# Get the date/time for input on email if necessary. #
# If the file exists send it by calling your ftp script. #
# Else mail the date and time of failure to someone who cares. #
############################################################################
date > date_file
if [ -f /path/your_file_name ]
then
/usr/local/bin/ftp_myfile
else
mailx -s "File did not exist" dlamar@gottschalks.com < /path_name/date_file
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 04:45 PM
11-26-2001 04:45 PM
Re: need script to FTP file from UNIX to NT
I'll give it a try.
Thanks,
Donna