Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-21-2013, 04:20 AM   #1
LQ Newbie
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
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.

Old 08-21-2013, 04:27 AM   #2
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,595
Blog Entries: 6

Rep: Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462
Post the output of ls -l from the directory where and emp.lst are located.
Old 08-21-2013, 05:04 AM   #3
Senior Member
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
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
Old 08-21-2013, 07:28 AM   #4
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 858

Rep: Reputation: 203Reputation: 203Reputation: 203
Seems like you are spawning another shell with
bash emp.lst
Make as an executable and run it as
Quote: emp.lst



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SOLUTION: named: loading from master file managed-keys.bind failed: file not found catkin Linux - Server 2 11-08-2011 03:51 PM
File written, under FreeDOS, on spi flash (formatted as FAT12) is not found in Linux Braiam Linux - Embedded & Single-board computer 2 01-18-2010 02:47 PM
error 15 :file not found on booting suse linux 10 vijay2009 SUSE / openSUSE 9 07-24-2009 02:16 AM
Devil-Linux boot process hangs after config file is found. meal3837 Linux - Distributions 0 08-11-2006 02:34 PM
Help!! Make file:62: *** Linux source not found. Stop. harlemno1 Linux - Newbie 6 03-04-2005 05:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration