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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 07:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 07:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-28-2005
Registered User
 

Join Date: Sep 2005
Posts: 130
Unhappy ftp problem

Dear friends

I have some data , i want to send it to france remote server

I want ftp shell script format .

i want to execute that ftp script at every 3 hours i want to put in crontab.

please give me code

regards

rajan
Reply With Quote
Forum Sponsor
  #2  
Old 10-28-2005
Registered User
 

Join Date: May 2005
Location: Scotland
Posts: 28
Dont want to be rude but have you looked into writing a script yourself!?
Reply With Quote
  #3  
Old 10-28-2005
Registered User
 

Join Date: Sep 2005
Posts: 130
Unhappy

dear plimpix

I have tried but when iam excuting it is asking password

i have alredy mentioned in script.

see below my script.

ftp -i luta.ssae.cls.fr << END_FTP
user xxx yyy
bin
hash
mput *.dat
quit
END_FTP

where xxx is username yyy pwd

when i run the above script as sh filename

it was asking password again at command prompt.

please solve my problem

i want to put this script as a cronjob
Reply With Quote
  #4  
Old 10-28-2005
Registered User
 

Join Date: May 2005
Location: Scotland
Posts: 28
try using ftp -n

If you do man ftp it will tell you what the -n stands for ! ;o)

Last edited by plimpix; 10-28-2005 at 03:12 AM.
Reply With Quote
  #5  
Old 10-28-2005
Registered User
 

Join Date: Sep 2005
Posts: 130
thanks it is working
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:38 AM.


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

Content Relevant URLs by vBSEO 3.2.0