UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 5th, 2005, 10:53 PM
princesssonya princesssonya is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 5 princesssonya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 24 sec
Reputation Power: 0
please help am struggling

Can somebody please help me in understanding this code and ftp in general.

ftp –i –n –v <<!
open ftp.mydomain
user incoming_orders password
cd unix_lighbulbs
binary
put $1
!
if ($? –ne 0 )
then printf “%s\n” “$SCRIPT : ftp transfer failed” >&2
exit 192
endif


Thanks
sonya

Reply With Quote
  #2  
Old April 6th, 2005, 04:22 AM
zlutovsky zlutovsky is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Prague, Czech Rep.
Posts: 116 zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 34 sec
Reputation Power: 6
Quote:
Originally Posted by princesssonya
Can somebody please help me in understanding this code and ftp in general.

ftp –i –n –v <<!
open ftp.mydomain
user incoming_orders password
cd unix_lighbulbs
binary
put $1
!
if ($? –ne 0 )
then printf “%s\n” “$SCRIPT : ftp transfer failed” >&2
exit 192
endif

Thanks
sonya



Hello Sonya,

always the same reply: you have to study

man ftp

and some tutorial of shell programming. There is no other way how to proceed. Look at the paragraph "Hier document".

I repeat my question: what Unix do you use? The line endif is illegal in ksh or bash or sh shell script.

Good luck!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > please help am struggling


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway