-   Linux - Newbie (
-   -   File not found in linux? (

chenchaiah.mca 08-21-2013 04:20 AM

File not found in linux?
Hi All,

First of all i am very new to linux scripting.
I am facing "file not found issue".
My script exeutes look into the file for informatica workflow path details.

This is the command i am using to run the script.
$ bash emp.lst is the script which uses the emp.lst as a parameter file.

emp.lst is the file which tells the path details of informatica workflow.

When i execute this command it is saying emp.lst is not found,but i have placed this file in the path.
I have checked the file by exeuting the below commands.
ls emp.lst
This issue has been running for long back.
If any one have faced this issue or have an idea to resolve please let me know the steps.
Thanks in advance for your great help.


astrogeek 08-21-2013 04:27 AM

Post the output of ls -l from the directory where and emp.lst are located.

Firerat 08-21-2013 05:04 AM

use the full path..

you may get away with just
./emp.lst ( assuming it is in the directory you are in when executing your 'main' script )

you shouldn't need bash

assuming begins with a shebang ( #!/bin/bash ), is executable and in 'PATH' all you need is
Code: ./emp.lst
might be a good idea to post your full script ( inside [code] [/code] tags please )
we can then help you with the rest of it

AnanthaP 08-21-2013 07:28 AM

Seems like you are spawning another shell with

bash emp.lst
Make as an executable and run it as
Quote: emp.lst


All times are GMT -5. The time now is 05:02 PM.