LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-21-2013, 04:20 AM   #1
chenchaiah.mca
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 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.
 
Old 08-21-2013, 04:27 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,889
Blog Entries: 1

Rep: Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007
Post the output of ls -l from the directory where informtica.sh and emp.lst are located.
 
Old 08-21-2013, 05:04 AM   #3
Firerat
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 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/
 
Old 08-21-2013, 07:28 AM   #4
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 806

Rep: Reputation: 186Reputation: 186
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
 
  


Reply


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


All times are GMT -5. The time now is 08:22 AM.

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