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
Changing the Bash Scripts to Bourne Scripts:URGENT pgarg1989 Shell Programming and Scripting 3 08-30-2009 11:35 AM
Running scripts within scripts from cron sirbrian Shell Programming and Scripting 4 07-14-2009 11:04 AM
Help with Script using rsh and scripts within scripts brockwile1 Shell Programming and Scripting 3 06-18-2009 10:38 AM
Profile scripts versus rc scripts.... rookie22 UNIX for Dummies Questions & Answers 1 09-17-2008 10:31 AM
Calling expect scripts from other expect scripts seva Shell Programming and Scripting 0 04-03-2008 02:45 PM

Reply
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 09-16-2009
bornon2303 bornon2303 is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 5
Need help with FTP scripts

Hi,

I'm using the following code to FTP files from a remote system.

ftp -inv <ip address> <<ENDFTP
user uname password

ENDFTP
echo "
binary
get <file name>
bye
" > ftp.tmp
ftp -inv < ftp.tmp


I want to know how I can capture the details of the FTP process in a file. I would also like to know if the ftp has happened successfully or it has failed. How can I do that in a script.
Any help in this regard will be of great help.

Thanks in advance.

Best Regards.
Nag
  #2 (permalink)  
Old 09-16-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 3,007
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
  #3 (permalink)  
Old 09-16-2009
anchal_khare anchal_khare is offline
Registered User
  
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 325

Code:
ftp -inv $HOST > ftp.worked 2> ftp.failed <<EOF

  #4 (permalink)  
Old 10-14-2009
Santhosh_Ind Santhosh_Ind is offline
Registered User
  
 

Join Date: Oct 2009
Location: India
Posts: 2
Thumbs up Transferring file from Windows server...

Hi,
I want to transfer html files from windows server to unix server. Those files also have to be assigned proper permissions. Can u people suggest any ideas for this scenario?

Regards,
Santhosh
Reply

Bookmarks

Tags
ftp

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 02:23 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