![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how do I make my workstation an installation server for a remote server?. | calsum | SUN Solaris | 3 | 04-18-2008 12:54 PM |
| Transfer file from local unix server to remote server | indira | Shell Programming and Scripting | 2 | 05-03-2007 03:35 AM |
| Transfer file from local unix server to remote server | indira | HP-UX | 2 | 05-02-2007 02:15 PM |
| FTP multiple files from remote server to local server | berlin_germany | Shell Programming and Scripting | 2 | 12-20-2006 12:24 AM |
| Finding an x25 address for a server | peter.herlihy | IP Networking | 1 | 11-30-2001 07:18 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
while using the rsh command to execute script S1 in the remote server it is not using the .profile in remote server.
The script S1 which is using sqlplus is not able to set up the ORACLE environment which is defined in .profile Thanks in advance.... |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Put into the beginning of your script a sourcing of the profile following, then try it again:
Code:
. ./.profile |
|
#3
|
|||
|
|||
|
Thanks for your reply; But its not working.
also after running the rsh command it was showing $PATH of source server rather thn Destination(Remote) Server so i hard coded that above the script in the remote. But i can't hard code the .profile ...please suggest. |
|
#4
|
|||
|
|||
|
"it's not working" is not a precise description of your error.
I just tested it. I put an environment script with following in it on box B: Code:
NEWVAR=something export NEWVAR Also a script using this (sourcing): Code:
. ./envfile echo $NEWVAR And if you can not modify script 2, you'll have just to write the sourcing infront of the script 2 name like: Code:
ssh somebox01 ". ./envfile; myscript". |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|