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 |
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What is shell terminal?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is use of "cut" command?
What is shell scripting?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What does path stand for?
How will you pass and access arguments to a script in linux?
Why is a script important?
What is inside a seashell?
What are the advantages of shell script?
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,