Computing.Net > Forums > Unix > calling from one server to another

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

calling from one server to another

Reply to Message Icon

Name: rajee
Date: March 22, 2006 at 08:30:36 Pacific
OS: UNIX
CPU/Ram: 256
Comment:

Hi,
I have a batch server where i need to run a script to call another script in the database server.The daabase server has the database and the batch only intiates the program and the shell in the database server exectues and extracts the data and store in the excel file...could anyone help in doing it ...could u give me some idea to do this ...tnxs in advance ...




Sponsored Link
Ads by Google

Response Number 1
Name: lchi2000g
Date: April 12, 2006 at 09:39:24 Pacific
Reply:

1. On DB server: (Oracle)

script: run.sh is as follows:

#!/bin/ksh

sqlplus $USERNAME/$PASSWORD@$CONNECT_STRING <<EOF
spool procress.sh
select ...
from ...
where ...;
spool off
host chmod 777 process.sh
host process.sh
EOF

2. On Batch server:

rsh <DB server hostname> -n [-l username] run.sh


Luke Chi


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: calling from one server to another

Ftp from Unix Server to Local machi www.computing.net/answers/unix/ftp-from-unix-server-to-local-machi/5245.html

add date to filename www.computing.net/answers/unix/add-date-to-filename/4611.html

rm files > 30 days to another dir www.computing.net/answers/unix/rm-files-30-days-to-another-dir/7255.html