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 Posted / 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 |
Post New Answer View All Answers
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What are the different types of commonly used shells on a typical linux system?
What is shell company all about?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
What does .sh file contain?
What are script files?
What is batch file programming?
What is the first line of a shell script called?
What is bash eval?
How to print all the arguments provided to the script?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is in a script?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
How to get the last line from a file using just the terminal?
What are the different variables present in linux shell?