![]() |
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 |
| Performance issue with ftp script. | Shiv@jad | Shell Programming and Scripting | 7 | 07-03-2009 01:01 PM |
| Issue with the shell script | viv1 | Shell Programming and Scripting | 2 | 02-19-2008 12:02 AM |
| SFTP script issue | sdhalepaska | UNIX for Dummies Questions & Answers | 0 | 07-05-2007 02:24 PM |
| Issue in my script | chiru_h | Shell Programming and Scripting | 4 | 09-27-2006 10:27 AM |
| Issue with sed in script | bthomas | Shell Programming and Scripting | 3 | 04-14-2005 05:21 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
please help ftp script issue
hi,
I have ftp script where the user name has "\" in it and my script unable to detect it....here is what I am doing... Code:
`ftp -vin <<- FTP >> log.txt 2>&1
user ibm\user password
FTP`
user ibmuser not found... please help..... |
|
||||
|
Ignoring the awful practice of having punctuation characters other than underscores and hyphens in a username, I was able to get this to work by using a .netrc file
machine localhost login ibm\\user password password Then using the command line: Code:
ftp -vi localhost 1>>log.txt 2>&1 <<- FTP ls FTP |
|
||||
|
Here is how I do mine with the slash in the username, the quotes around the variable seem to take care of the issue.
HOST='ipaddress' USER='domain\username' PASSWD='password' ftp -v -n $HOST >> ftp.log <<END_SCRIPT quote USER "$USER" quote PASS $PASSWD cd My/Path/To/Files prompt bin mput * quit END_SCRIPT |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|