Home » Infrastructure » Unix » -bash: Not a directory
-bash: Not a directory [message #611919] Thu, 10 April 2014 02:52 Go to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
[appltest@test ~]$ cd $ONT_TOP/forms/US
[appltest@test US]$ pwd
/u01/appltest/apps/apps_st/appl/ont/12.0.0/forms/US
[appltest@test US]$ cd $AU_TOP/forms/US
-bash: cd: /u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US: Not a directory

Re: -bash: Not a directory [message #611920 is a reply to message #611919] Thu, 10 April 2014 03:07 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
file $AU_TOP/forms/US
Re: -bash: Not a directory [message #611923 is a reply to message #611920] Thu, 10 April 2014 04:09 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
[appltest@test ~]$ XXC_EMP.fmb $AU_TOP/forms/US
-bash: XXC_EMP.fmb: command not found


I have XXC_EMP.fmb and XXC_EMP.fmx and i want to move XXC_EMP.fmb to $AU_TOP/forms/US Path.

So,i used some commands to move the form one path to another path in the same server.

[appltest@test ~]$ cd $ONT_TOP/forms/US
[appltest@test US]$ ls XXMZ_EMP_FOLDER_FRM.fmb XXMZ_EMP_FOLDER_FRM.fmx*
XXMZ_EMP_FOLDER_FRM.fmb  XXMZ_EMP_FOLDER_FRM.fmx

[appltest@test US]$ echo $AU_TOP/forms/US
/u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US
[appltest@test US]$ mv XXMZ_EMP_FOLDER_FRM.fmb /u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US
[appltest@test US]$ XXMZ_EMP_FOLDER_FRM.fmb $AU_TOP/forms/US
-bash: XXMZ_EMP_FOLDER_FRM.fmb: command not found




And i paste the /u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US Path to get the .fmb files and i am getting below error

Cannot get real path for '/u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US:'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 16


Please help

[Updated on: Thu, 10 April 2014 04:18]

Report message to a moderator

Re: -bash: Not a directory [message #611926 is a reply to message #611923] Thu, 10 April 2014 04:22 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Why do you ask for help, and then not run the command I gave you? Very odd behaviour.
Re: -bash: Not a directory [message #611927 is a reply to message #611926] Thu, 10 April 2014 04:25 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi John,

I am really sorry...

Please follow below.

[appltest@test ~]$ file $AU_TOP/forms
/u01/appltest/apps/apps_st/appl/au/12.0.0/forms: directory

[Updated on: Thu, 10 April 2014 04:27]

Report message to a moderator

Re: -bash: Not a directory [message #611929 is a reply to message #611926] Thu, 10 April 2014 04:45 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
John Watson wrote on Thu, 10 April 2014 10:22
Why do you ask for help, and then not run the command I gave you? Very odd behaviour.

Re: -bash: Not a directory [message #611931 is a reply to message #611929] Thu, 10 April 2014 04:48 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Sorry for that.. Smile
Quote:

Why do you ask for help, and then not run the command I gave you? Very odd behaviour.

[appltest@test ~]$ file $AU_TOP/forms/US
/u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US: data


In the above command what is the file ? Please let me know , what file name to pass here?

[Updated on: Thu, 10 April 2014 04:52]

Report message to a moderator

Re: -bash: Not a directory [message #611932 is a reply to message #611931] Thu, 10 April 2014 05:01 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Thank you for (finally) letting me help you.

This, /u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US, is not a directory. It is a file. Somehow, you have managed to remove the directory and its contents, and replace it with a file. Or to put it another way, you have severely damaged your EBS installation. Better delete the file, and extract the directory and its contents from a backup.
Re: -bash: Not a directory [message #611933 is a reply to message #611932] Thu, 10 April 2014 05:03 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi John Thanks.

Quote:

This, /u01/appltest/apps/apps_st/appl/au/12.0.0/forms/US, is not a directory. It is a file. Somehow, you have managed to remove the directory and its contents, and replace it with a file. Or to put it another way, you have severely damaged your EBS installation. Better delete the file, and extract the directory and its contents from a backup.


Could you please help me,i am new to using Unix?

Thanks
Re: -bash: Not a directory [message #611935 is a reply to message #611933] Thu, 10 April 2014 05:05 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Teaching you to restore files from backup is beyond the scope of an Oracle forum. Talk to your sys admin. Show him this topic: he will understand.
Re: -bash: Not a directory [message #611941 is a reply to message #611919] Thu, 10 April 2014 05:39 Go to previous message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Previous Topic: how to run .sql file from shell script
Next Topic: how to install bash 3.0
Goto Forum:
  


Current Time: Fri Nov 22 16:54:17 CST 2024