Download PLATOThe free tool for auditing and tuning your database Version 52 now available  Jul 12, 2010
The DBA-Village forum
as RSS feed
Site Statistics| Ever registered | 41903 | | Total active users | 26384 | | Act. users last 24h | 318 | | Act. users last hour | 15 | | Hits last week | 5251 | | Hits last month | 21266 |
|
Go up
auto update ftp script
| Message |
Score |
Author |
Date |
Hi,
i want to write a script which auto updat...... |
|
vanishri N |
Dec 28, 2004 |
Hi,
in the script what ever action you want to ...... |
|
gouri sankar |
Dec 28, 2004 |
The request is not very clear. Do you have problem...... |
     |
Zoran Hudec |
Dec 28, 2004 |
Do you think your question is in any way related t...... |
     |
SUBROTO MUKHERJEE |
Dec 29, 2004 |
Mr. Zoran Hudec, requarding you hudge and vast tec...... |
     |
SUBROTO MUKHERJEE |
Dec 29, 2004 |
SUBROTO,
what is your point? Are you on the right...... |
|
Zoran Hudec |
Jan 04, 2005 |
| Subject: |
auto update ftp script |
| Author: |
vanishri N, Singapore |
| Date: |
Dec 28, 2004, 2080 days ago |
| Os info: |
HP-UX |
| Message: |
Hi,
i want to write a script which auto update files using ftp from centralized server to different servers of corresponding directories.i am successfull writing script which does ftp to diffrent servers but unable to identify directories.here directory structure is not same to all servers..pls can anyone has script or can help for me in writing script.
thanks |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: auto update ftp script |
| Author: |
gouri sankar, India |
| Date: |
Dec 28, 2004, 2080 days ago |
| Message: |
Hi,
in the script what ever action you want to do in a particular directory, you need to go that directory which can done by "cd" command.
You can also use absolute path name for file for doing the job.
Gouri |
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: auto update ftp script |
| Author: |
Zoran Hudec, Australia |
| Date: |
Dec 28, 2004, 2079 days ago |
| Score: |
       |
| Message: |
The request is not very clear. Do you have problems identifying the current directory on a server?
You can do this:
host_dir=`rsh $host pwd`
Or you need something else?
Do you want to specify target directory for each host?
#specify host
host=host2
#define target cd for each host where it's different than the default
cd_default=/usr/local/bin
eval cd_${host}=$cd_default
cd_host1=/apps/whatever
cd_host2=/apps/somethingelse
cd_host3=/usr/bin
eval cd=cd_${host}
$cd will contain the target directory for the specified host.
ftp -n <<EOF
user username password
cd $cd
prompt off
put file1
mput something
bye
EOF
note: I didn't test this, but I am sure with some fiddling you'd get it right.
Or you're after something else?
|
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: auto update ftp script |
| Author: |
SUBROTO MUKHERJEE, India |
| Date: |
Dec 29, 2004, 2078 days ago |
| Score: |
       |
| Message: |
Do you think your question is in any way related to oracle!
|
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: auto update ftp script |
| Author: |
SUBROTO MUKHERJEE, India |
| Date: |
Dec 29, 2004, 2078 days ago |
| Score: |
       |
| Message: |
Mr. Zoran Hudec, requarding you hudge and vast technical response related to the the ftp support, what i can finally conclude that register to a new forum with immediate effect that has nothing to do with oracle dba |
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: auto update ftp script |
| Author: |
Zoran Hudec, Australia |
| Date: |
Jan 04, 2005, 2073 days ago |
| Message: |
SUBROTO,
what is your point? Are you on the right forum?
Here we help each other with all the tasks we encounter while doing the DBA work. That involves ftp, http, scp, snmp, tcp/ip , windows, linux, sun/os hp-ux and many other things.
As long as there is somebody willing to answer, there is no harm in asking. I don't consider this question out of line with all the rest. I only wish it was a bit clearer. Even that is not an issue, as long as the person asking it understands the answer and it helps the through the problems encountered.
Your comments on other hand are negative and discouraging. |
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
|