Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-21-2007, 11:17 PM   #1
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Rep: Reputation: 36
how to execute a script file? Have file/directory not found error

I am trying to execute the script file against pvr48wdm_1.8.22037.exe as root and I get the bash error file not found or path not found. Is there a location or syntax that I am not using? The docs say: ./ivtvfwextract /path/to/firmware. I am trying to run the script in my home folder and I also copied the files and tried running it in /lib/modules.
Old 11-21-2007, 11:37 PM   #2
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
Well assuming you are in your home folder, run ls to confirm that both and pvr48wdm_1.8.22037.exe are present there.
./ means that is in the present working directory. If its in some other location, you must use the full path to run it. e.g. /home/sirius57/
So can you trying again with the full paths for both the script and the arguments?
e.g. /home/sirius/ /home/sirius/pvr48wdm_1.8.22037.exe
(Also remember that you script should be executable for it to run)
Old 11-21-2007, 11:43 PM   #3
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
you need to check 2 things.... See if the file's permissions are executable and where perl is located.

1. Go into the dir the script is and type
'ls -l'
it will be something like this...
-rwxr-xr-x 1 zymos zymos 104 Nov 21 17:28 azScript

It needs to have 'x' for executable
-(rwx for user)(r-x for group)(r-x for everybody)
it does not need to be exacty like shown above, it just need x for user
If its not run
'chmod 755'

try running it again

it may say something like perl not found.....
you can try
'perl ivtvfwextract /path/to/firmware'

or find where perl is

type 'which perl'

then edit the first line of the script to have the correct location for perl


hope this is enough, but not too much intel



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
cannot execute script file from shell shahrahulb Linux - General 4 03-04-2008 07:02 AM
Using ./ to execute a file in current directory benchmarkman Linux - General 25 06-18-2007 08:48 PM
Random file lines directed to a new file. In script an error. In command line no err leventis Programming 1 09-28-2006 07:16 AM
no such file or directory exists when trying to execute a exe ryedawg Linux - Software 5 12-05-2005 05:42 AM
snmpd installed, see file, but get error file not found PCHelper Slackware 0 11-06-2003 12:44 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:53 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
Open Source Consulting | Domain Registration