The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
removing frame charecters tkbharani UNIX for Advanced & Expert Users 6 04-16-2008 02:39 AM
restricted pointers carl.alv High Level Programming 0 02-29-2008 08:34 PM
replacing a line of unknown charecters in a file malavm Shell Programming and Scripting 12 07-26-2007 01:25 AM
HP-UX Restricted SAM Andrek UNIX for Advanced & Expert Users 1 01-10-2007 07:37 PM
stripping out certain charecters mervin2006 Shell Programming and Scripting 4 12-01-2006 05:22 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-15-2006
Registered User
 

Join Date: Dec 2005
Posts: 32
Restricted charecters in FTP password

hi

i am unable to connect to FTP server.My FTP password contain one special charecter '#'.it might be the problem for connecting.please clarify regarding this special charecter in the password.i need some information about restricted charecters in the shell script.

thanks
Reply With Quote
Forum Sponsor
  #2  
Old 05-16-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
How do you try to connect and fail: from inside a script or on the command line?
Reply With Quote
  #3  
Old 05-16-2006
Registered User
 

Join Date: Dec 2005
Posts: 32
hi
i am trying from the shell script
Reply With Quote
  #4  
Old 05-16-2006
Registered User
 

Join Date: Dec 2005
Posts: 32
hi
from command line i am able to connect the remote server.but from the shell script with same password is not connecting.in the password last charecter is '#'.
Reply With Quote
  #5  
Old 05-16-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Try something like this:
Code:
echo "
verbose
open nodename
user username 'mypasswd#'
get somefile
bye
"  | /usr/bin/ftp -n
# is the script "comment" character - it begins a comment.
Reply With Quote
  #6  
Old 05-16-2006
Registered User
 

Join Date: Apr 2006
Posts: 15
Hey I've tried with the password having a # at the end. Try this

Let the variables username and password have the corresponding username and password or have it directly in the script.

ftp -nv $IP_ADDRESS << cmd
user $username $password
get file1
get file2
quit
cmd
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0