The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: SSH FTP Issue
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-18-2008
crosairs crosairs is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 4
SSH FTP Issue

Hi,

I have a ftp script which is supposed to ftp to different servers in the same environment and get request logs from a path. But when I run the script I get the following errors,
HTML Code:
[B]1142INPUT_WBS/1142INPUT_WBS
ftp: 1142INPUT_WBS.sbc.com: unknown host
Not.
Not connected.
local: /home/sn9460/logs: No such file or directory
Not connected.
Interactive mode on.
Not connected.
ftp: 1142INPUT_WBS.sbc.com: local: /home/sn9460/logs: No such file or directory
./ftp.sh: line 313: cd: /home/sn9460/logs: No such file or directory
gunzip: request.log*.gz: No such file or directory
./ftp.sh: line 315: syntax error near unexpected token `('
./ftp.sh: line 315: `bash ${LOCAL_DIR}/logextract.bash ( logextract script path )'[/B]
please tell me is this a issue with the script or should I enable SSH on all the servers.

Thanks for your time