![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Urgent : Help required | V3l0 | AIX | 2 | 01-11-2008 11:37 AM |
| Urgent help required | umanglalani | Shell Programming and Scripting | 1 | 04-12-2007 04:24 AM |
| Urgent Help required | rahul26 | UNIX for Dummies Questions & Answers | 1 | 08-16-2006 02:23 PM |
| Urgent Need for Assistance: Triggering Windows bat files from UNIX | punyenye | Windows & DOS: Issues & Discussions | 0 | 03-16-2006 05:00 AM |
| UNIX linked to Windows Urgent | akrum | UNIX for Dummies Questions & Answers | 1 | 09-07-2005 03:11 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
ftp from unix to windows - urgent help required
I'm trying to ftp from a Unix machine to a Windows machine..
I've tried the following #!/bin/sh #set -x USER="user1" PASS="pass1" HOSTNAME="host1" ftp -n -i -v $HOSTNAME << EOT user $USER $PASS cd / send text1.txt close bye EOT When I try to run this, I get prompted for the password. But since this will be working in a Production environment and run by people who have no idea what this script will be doing , the process should be automated. The user id and password have to go in automatically and the file should be put in. I've tired different options like ftp -n -i -v << EOT open $HOSTNAME $USER $PASS cd / send text1.txt close as well as ftp -n << EOT open $HOSTNAME quote USER $USER quote PASS $PASS cd / send text1.txt close but always I keep getting the same error, where I'm prompted for the password. Output when running script ---------------------------------- **** Connected to host1 220 FTP server (Hummingbird Ltd. (HCLFTPD) Version 9.0.0.0) ready. 331 Password required for user1 *** This is kind of urgent. Any help would be greatly appreciated. Thanks Sam |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|