Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How tocheck the dir existence on a remote server

RE: How tocheck the dir existence on a remote server

From: Robertson Lee - lerobe <lerobe_at_acxiom.co.uk>
Date: Mon, 12 Aug 2002 03:23:20 -0800
Message-ID: <F001.004B1CBB.20020812032320@fatcity.com>


Try this

rsh server_name "[[ -d /tmp ]] && echo "Is there" || echo "Is not there""

Works for me

HTH Lee

-----Original Message-----
Sent: 12 August 2002 11:53
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



Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: kommareddy sreenivasa
  INET: kommacnu_at_yahoo.com
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).

The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Robertson Lee - lerobe
  INET: lerobe_at_acxiom.co.uk

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 - 06:23:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US