The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Disabling 802.3x flow control LivinFree IP Networking 0 11-18-2006 02:33 AM
Flow Chart sabari High Level Programming 1 04-12-2006 02:57 AM
dilemma in control flow tej.buch High Level Programming 2 02-10-2006 10:41 AM
Flow of Unix System spanglerbrod Security 1 05-21-2002 04:11 AM
how to assign correct control flow? apalex UNIX for Dummies Questions & Answers 1 07-11-2001 12:10 AM

Closed Thread
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
  #1 (permalink)  
Old 06-18-2008
kaaakrishna kaaakrishna is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 7
Script should flow after ftp --Urgent

Hi everyone,

The script actually does the ftp and gets the file to the local system.
I want to do some manipulations for that file , But after doing ftp , script is not proceding and just a prompt is displayed .

....
ftp code here......
....................
...............
echo "FTP over"

Output is : home/dir11>

Required output : "Ftp over" something like that..


Can any one help....it's urgent to my script now.
  #2 (permalink)  
Old 06-18-2008
uttamhoode uttamhoode is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 18
try this

#!/bin/sh
IP='127.0.0.1'
USERNAME='uname'
PASSWORD='pswd'

ftp -un $HOSTNAME <<EOF
quote USER $USERNAME
quote PASS $PASSWORD
ls
quit
EOF
echo "FTP over"
exit 0
  #3 (permalink)  
Old 06-19-2008
kaaakrishna kaaakrishna is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 7
Thanks yaar....I will try
  #4 (permalink)  
Old 06-19-2008
kaaakrishna kaaakrishna is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 7
it's not working.....saying -u : unknown option
  #5 (permalink)  
Old 06-20-2008
kaaakrishna kaaakrishna is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 7
Hi everyone....

I got the solution but may not be the optimum one...

Wht I did was

Let A,B be two servers...

from A server telnet to B
and from there ftp'ed the file to A....

Telnet did not cause any harm in flow control .....Thus, flow was as expected even after the ftp....

plx ...post if you find any other solution

Thanks,
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 On




All times are GMT -4. The time now is 07:24 PM.


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