Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How tocheck the dir existence on a remote server
Srinivas - how about this?
#!/bin/ksh
if rsh srvr27 'ls /export/home/oracle'
then
echo "existing"
else
echo "not existing"
fi
-----Original Message-----
Sent: Monday, August 12, 2002 5:53 AM
To: Multiple recipients of list ORACLE-L
Hello All,
Solaris: 2.8
Can somebody tell me how find whether a directory/file is existing on a remote server.
I used the folloiwng script, but did not work.
rsh if [ -d srvr27:/export/home/oracle ]
then
echo "existing"
else
echo "not existing"
fi
I put rsh after the [ -d . but that also did not work.
I am presently on srvr28 and checking for the dir existtence on srvr27.
Thanks in advance,
Srinivas
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Aug 12 2002 - 09:38:29 CDT
![]() |
![]() |