LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-21-2007, 11:17 PM   #1
sirius57
Member
 
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 ivtvfwextract.pl 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
indeliblestamp
Member
 
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 ivtvfwextract.pl and pvr48wdm_1.8.22037.exe are present there.
./ivtvfwextract.pl means that ivtvfwextract.pl 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/ivtvfwextract.pl.
So can you trying again with the full paths for both the script and the arguments?
e.g. /home/sirius/ivtvfwextract.pl /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
zymos
Member
 
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 ivtvfwextract.pl'

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

'#!/usr/bin/perl'

hope this is enough, but not too much intel


ZyMOS
http://howto.wikia.com
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration