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: Unix question

RE: Unix question

From: Gene Sais <Gsais_at_co.palm-beach.fl.us>
Date: Fri, 11 Jan 2002 09:42:41 -0800
Message-ID: <F001.003EDEE8.20020111090539@fatcity.com>

I agree and just to add, use environment variables for your paths or better yet, create an environment script that gets sourced by each script. This way you only need to update one environment script when the environment changes.

>>> ksmith2_at_myfirstlink.net 01/11/02 10:40AM >>>
Off the top of my head, I am thinking that the current directory is not in your path. That is not an unusual thing. Specify the whole filename when executing it (including the path). Of course, if the script calls other scripts (or uses other files) and expecting them in the current directory you will have the same issue I believe. Its bad practice not to specify the path in scripts.

-----Original Message-----
Maheswara
Sent: Friday, January 11, 2002 7:05 AM
To: Multiple recipients of list ORACLE-L

Roland,

The file permissions on the file - loadfiles.sh --- might be set to no execute, no read, no write permissions for the group and others. In this case, only the owner of the file could access the file. Hence, under what user id are you calling this script? Also, check the permissions on the --- loadfiles.sh.

Or change the file permissions on - loadfiles.sh ---. Go to the directory where - loadfiles.sh --- exists. Enter --- chmod 777 loadfiles.sh. Then run your command. If you get error during chmod command, it means you are not the owner of the file and hence, you are getting the error. In that case, you have two options. Either contact your sysadmin and ask him to change the file permissions on loadfiles.sh. Or if you know the owner's userid and pass word, then log on as that user and then change permissions on loadfiles.sh by executing the command chmod 777 loadfiles.sh

Rao

-----Original Message-----
Sent: Friday, January 11, 2002 8:00 AM
To: Multiple recipients of list ORACLE-L Hi

can you do a "cat" on that file? if no: Maybe there are invisible characters as the back/front of the file name. try mv *loadfiles.sh* loadfiles.sh (see if you get message that filenames are identical)

If that is not the problem, maybe the script calls a file that doesn't exist

Jack

Roland.Skoldblom_at_ica.se_at_fatcity.com on 11-01-2002 13:25:18

Please respond to ORACLE-L_at_fatcity.com

Sent by: root_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: (bcc: Jack van Zanen/nlzanen1/External/MEY/NL)

Hallo,

why do I get the error message "No such file or directory". when I try to run unix script loadfiles.sh which is located in  the directory /konto/tmp.

This file, loadfiles.sh really exists in that directory.

Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Rao, Maheswara
  INET: Maheswara.Rao_at_Sungardp3.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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Kimberly Smith
  INET: ksmith2_at_myfirstlink.net 

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).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Gene Sais
  INET: Gsais_at_co.palm-beach.fl.us

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 Fri Jan 11 2002 - 11:42:41 CST

Original text of this message

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