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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 11:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 10:12 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-06-2005
cskumar cskumar is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 67
Ftp problem

hi i have written a shell to automate the ftp process for the particular file.iam getting errors when try to ftp it.And i am cant get why the lcd is not being taken properly as it is taking during runtime.can anyone give me a solution
here its my code
DATE=`date '+%d_%m_%Y'`
FILE=backup_xxx_${DATE}.dmp
echo "Starting FTP Process"
echo "Starting FTP Process" >> log_backup_${DATE}.txt
echo " Please Enter the local Directory for put the Dump ::"
read DIRECTORY
echo "File Name For taking the Dump is ::${FILE}"
ftp -n servername <<END_SCRIPT > /efe/htrd/FTP_log_${DATE}.log 2>&1
quote USER xxx
quote PASS xxx
bin
hash
lcd "$DIRECTORY"
get $FILE
bye
END_SCRIPT
if [ $? -eq 0 ]
then
echo "FTP Status for xxx :: SUCESS"
echo "FTP Status for xxx :: SUCESS" >> log_backup_${DATE}.txt
else
echo "FTP Status for xxx :: FAILED"
echo "FTP Status for xxx :: FAILED" >> log_backup_${DATE}.txt
exit
fi
echo " End FTP Process"
echo " End FTP Process" >> log_backup_${DATE}.txt

and the FTP_log is

Authentication type KERBEROS_V4 not implemented; use 'GSSAPI'.
KERBEROS_V4 rejected as an authentication type
local: D:\Download: No such file or directory
Hash mark printing on (1024 bytes/hash mark).
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0