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



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-14-2008
Registered User
 

Join Date: Nov 2007
Posts: 6
ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location.
However, on running the script I find that I am not even able to connect to ftp server.

I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP.

IP used here is a dummy IP.

What can go wrong here?

#!/bin/ksh
ftp -vnd "111.111.111.111" << ++ 1>>readme.log 2>&1
user "me" "passwd"
prompt off
ascii
cd /f001/sftp/abc
lcd /export/home/abc
get BSH`date +%y%m%d`.HIST
bye
++
Sponsored Links
  #2 (permalink)  
Old 02-14-2008
Technorati Master
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 3,007
why is there a space betwee << and ++ ?

Remove that try
  #3 (permalink)  
Old 02-16-2008
Registered User
 

Join Date: Nov 2007
Posts: 6
Even this does not connect!
ftp -vnd "111.111.111.111"

Planning this:
wget --ftp-user=me --ftp-password=passwd ftp://111.111.111.111/export/home/abc/$file
  #4 (permalink)  
Old 02-16-2008
Technorati Master
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 3,007
Quote:
ftp -vnd "111.111.111.111" << ++ 1>>readme.log 2>&1
I didn't mean to remove the entry

it should be modified as


Code:
ftp -vnd "111.111.111.111" <<++ 1>>readme.log 2>&1

Sponsored Links
Closed Thread

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to connect sftp server using script kittusri9 Shell Programming and Scripting 1 05-06-2008 08:12 AM
connect to server using ssh tungaw2004 UNIX for Dummies Questions & Answers 0 07-27-2007 11:49 PM
Could not connect to the server srikanthus2002 UNIX for Dummies Questions & Answers 4 11-28-2006 07:31 AM
Connect to a Remote Sybase Server Through Script Aparna_k82 Shell Programming and Scripting 3 02-17-2006 11:59 AM
Connect to a Remote Sybase Server Through Script. Aparna_k82 Windows & DOS: Issues & Discussions 2 06-23-2005 12:26 PM



All times are GMT -4. The time now is 10:59 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-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0