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 / 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 |
What is the use of a shebang line?
Where is bash history?
What are scripts in psychology?
What is the first line in every perl script called?
How do I open the shell in cmd?
What is eval in shell script?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What language is bash?
Explain about echo command?
Write a command sequence to find the count of each word?
Explain about gui scripting?
what is the difference between cmp and diff commands