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 |
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 communication commands available in the shell?
How does path variable work?
How to pass an argument to a script?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
give me some website where i can get unix and testing meterials
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
What is $1 in shell scripting?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
Write the syntax for "if" conditionals in linux?
How many prompts are available in a UNIX system?
What is MUTEX?