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 does ls command work?
how to create purchase order
How to change our default shell?
What is console line?
Explain about debugging?
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
What does $$ mean in shell script?
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
is this growing field and what is average package in this?
What is egrep?
What is path in shell script?
how did u debugging in unix/ linux platform ??( project Related)