LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File not found in linux? (https://www.linuxquestions.org/questions/linux-newbie-8/file-not-found-in-linux-4175474110/)

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 informtica.sh emp.lst

Informatica.sh 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
./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.

Regards,
Chen.

astrogeek 08-21-2013 04:27 AM

Post the output of ls -l from the directory where informtica.sh 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 informtica.sh

assuming informtica.sh begins with a shebang ( #!/bin/bash ), is executable and in 'PATH' all you need is
Code:

informtica.sh ./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


http://www.tldp.org/LDP/Bash-Beginners-Guide/html/
http://www.tldp.org/LDP/abs/html/

AnanthaP 08-21-2013 07:28 AM

Seems like you are spawning another shell with
Quote:

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

informtica.sh emp.lst
.

OK


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