I want to upload a file to remote server through ftp
daily.Can anyone suggest how to make a shell script for
that.I hv credentials for that ftp



I want to upload a file to remote server through ftp daily.Can anyone suggest how to make a shell s..

Answer / geichel

#!/bin/bash

/bin/ftp -inv ip_address_of_target_station<<ENDFTP
user ftpusername ftpuserpassword
cd folder_on_target
bin
lcd folder_on_local
put filename.txt
bye
ENDFTP

# Alternatively some ftp packages let you put a script in
$HOME/.netrc

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Shell Script Interview Questions

How does ls command work?

0 Answers  


how to create purchase order

2 Answers  


How to change our default shell?

5 Answers  


What is console line?

0 Answers  


Explain about debugging?

0 Answers  






c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory

1 Answers  


What does $$ mean in shell script?

0 Answers  


How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"

12 Answers   Cap Gemini,


is this growing field and what is average package in this?

0 Answers  


What is egrep?

2 Answers  


What is path in shell script?

0 Answers  


how did u debugging in unix/ linux platform ??( project Related)

2 Answers   Symphony,


Categories