Visit Jeremy's Blog.
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, 03: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, 03:27 AM   #2
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,227
Blog Entries: 11

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

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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, 06:28 AM   #4
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 893

Rep: Reputation: 208Reputation: 208Reputation: 208
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 02: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 01:47 PM
error 15 :file not found on booting suse linux 10 vijay2009 SUSE / openSUSE 9 07-24-2009 01:16 AM
Devil-Linux boot process hangs after config file is found. meal3837 Linux - Distributions 0 08-11-2006 01:34 PM
Help!! Make file:62: *** Linux source not found. Stop. harlemno1 Linux - Newbie 6 03-04-2005 04:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 PM.

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