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 |
How to print all array elements and their respective indexes?
Given a file find the count of lines containing the word "abc".
What is a shell made of?
Explain about the slow execution speed of shells?
how can you execute the shell scripts?
I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?
How shell works?
What is a shell script in windows?
What does $# stand for?
Differentiate between ‘ and ” quotes.
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What is a scripting language simple definition?