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 |
Is shell a part of kernel?
Is shell scripting difficult?
Write a shell script to get current date, time, user name and current working directory.
Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus “a” becomes “f’”).
2 Answers Ignou, Tripura Info,
What is the syntax of "nested if statement" in shell scripting?
What is inside a seashell?
What is shell terminal?
How to print all array elements and their respective indexes?
Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance
What are the different commands available to check the disk usage?
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
What is wc in shell script?