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 would you replace the n character in a file with some xyz?
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 advantages of shell script?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
write a shell script to find the largest number from 3 given numbers.
What are the three main forms of enabling debugging in a shell script?
What command needs to be used to take the backup?
How do you know which shell I am using?
What are the various stages of a linux process it passes through?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
What does $0 mean in shell script?
What are script files?