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
What is sed in shell script?
Given a file find the count of lines containing the word "abc".
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
What does echo $0 do?
What are the different variables present in linux shell?
How can the contents of a file inside jar be read without extracting in a shell script?
What is option in shell script?
What is the first line in a shell script?
Can you write a script to portray how set –x works?
wats the deinitions for shell utility and filter?
How do I run a shell script on a mac?
What is sudo command?
What does $@ mean bash?
How to pass an argument to a script?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.