The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 08:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 03:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 09:59 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-2005
Registered User
 

Join Date: Mar 2005
Posts: 4
Thumbs up Unix Help!

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

Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-19-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
In short, what you have here is a code fragment from a scripted ftp transfer, after which the exit code is tested to see if the ftp was successful or not.

Read the manual page for ftp and the manual page for your shell (csh, apparently), to find out how it's done. Also, search these forums as there are *many* examples and explanations of scripted ftp transfers.

Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 03-20-2005
Registered User
 

Join Date: Mar 2005
Posts: 4
thanks

Thanks everyone for the help. Its pretty obvious but im new to unix.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0