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
Answer Posted / 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 View All Answers
Tell something about the super block in shell scripting?
How can the contents of a file inside jar be read without extracting in a shell script?
What does .sh file contain?
What are the zombie processes?
What is echo in shell?
Explain how you Automate your application using Shell scripting.
What is bash used for?
Explain about gui scripting?
What are the different commands available to check the disk usage?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
How to find all the files modified in less than 3 days and save the record in a text file?
What is a shell in operating system?
Is bash a shell script?
Why is the use of shell script?
How to print the first array element?