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
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 07:19 AM
ftp issue ravi raj kumar Shell Programming and Scripting 5 02-06-2008 08:24 AM
awk issue on AIX ranj@chn Shell Programming and Scripting 1 07-04-2007 07:22 AM
Issue with rsh sriram.s AIX 5 07-03-2007 12:37 PM
FTP Issue, Help please moe2266 UNIX for Dummies Questions & Answers 0 01-17-2006 10:54 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 07-28-2006
u263066 u263066 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 66
FTP issue

I have tried to ftp from unix to local window machine. I have taken this piece of code from forum and tried ...
HTML Code:
#!/bin/ksh
#Usage example: ftpscript sanjit.txt C:/citi/readme.txt
localFile=$1
remoteFile=$2

ftplog=loglog.log
echo "$(date "+%H:%M:%S") - Attempt to FTP $1 to $2" > $ftplog

# do the FTP put

ftp -i -n <<EOF >> $ftplog
open 182.101.11.166
user user password
put $localFile $remoteFile
ls $remoteFile
quit
EOF
But once executing the script, nothing have been responded from the unix.Simple i am comming out by Ctrl C.

I have checked :
$ uname is SunOS

Can anyone tell is something goes wrong the above code or should something need to set in Unix only.

There are few query posted seems Solaries does have some other limiation. Can any Unix Guru address this??

Thanks in advance
 

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 04:17 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