LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-27-2008, 08:08 PM   #1
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Rep: Reputation: 15
Start install script ? ./install.sh


Hi:
I tried to run an install script in Ubuntu. My first attempt failed when I tried to enter the following in the terminal : sudo sh install.sh This generated an error that was 40: Syntax error } unexpected'. Then I was told to enter sudo ./install.sh . This seemed to work. What does the ./ before the file name signify?
Thanks,
Scott
 
Old 09-27-2008, 08:57 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Prefixing a filename with "./" means that the file you want to access is in the current directory. Many distributions don't include the current directory in your PATH variable (a list of locations from which to look for executable programs) due to security concerns.

Generally speaking, it is a good idea to specify that the program you want to run is in the current directory to prevent any confusion. There might be another file called "install.sh" somewhere in your PATH, which was running instead of the intended script.
 
Old 09-27-2008, 09:23 PM   #3
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 16
Script

Did you set the execute (x) permission for the script file?

chmod u+x file
 
Old 09-27-2008, 09:49 PM   #4
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
Hardware for the Blind

Is there a way to reply to one post in this thread as opposed to another? I did set the X parameter of the file and got the file to run. Thanks for the info on syntax. Now I don't know how to start or stop the program it installed. It is a text based front end for a verbal prompt system for the blind. Any thoughts on trying to find what I've installed and how to start and stop it? I've seen it run from a LiveCD and it can be run without seeing the screen by just listening to the prompts.
 
Old 09-28-2008, 12:59 PM   #5
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Quote:
Originally Posted by SBFree View Post
Is there a way to reply to one post in this thread as opposed to another? I did set the X parameter of the file and got the file to run. Thanks for the info on syntax. Now I don't know how to start or stop the program it installed. It is a text based front end for a verbal prompt system for the blind. Any thoughts on trying to find what I've installed and how to start and stop it? I've seen it run from a LiveCD and it can be run without seeing the screen by just listening to the prompts.
There is an icon "Quote" in the lower right corner of each post that you might want to reply to.


$ ps -ef | grep name of prog should show process id of the program
or
$ ps ax | grep name of program is an alternative
then
$ kill pid where "pid" is the process id of the progra/script
or
$ sudo kill pid

Is the "blind guy" product open source or is it a commercial product?
 
Old 09-29-2008, 09:54 PM   #6
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
The software is free to download on the web and is called "LinuxSpeaks" and can be downloaded at: http://www.joekamphaus.net/ . My 80+ year old mom just went blind. Until then we were using email and IM several times a day. I would like to make a system she can use again with minimal key strokes & one that will read her mail out loud. There is a commercial product for Windoze and this free one for Linux that I've come across so far. If you have any thoughts about some better approach please let me know. Thanks for your help. I got the Linux side working.
Scott
 
Old 10-01-2008, 09:07 AM   #7
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Thanks for the link. May need that myself later on down.
Windows does have built in text to speech which might do the job, but if you have the linux version up and running, you have all opeions open. Good luck with your mom.
 
Old 10-01-2008, 11:45 AM   #8
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Windows Narrator will read anything on the screen; it is designed specifically for blind users.
 
  


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
How to install default start/stop script links for deamon directoryserver? kim0 Linux - Newbie 0 12-25-2007 07:37 AM
install script to install scratchbox in debian culin Debian 1 09-26-2007 01:40 AM
FC6 fresh install won't start from XP CD to install XP 2nd ask_save Fedora 2 11-17-2006 07:23 AM
building a bash script from an install script paranoid times Programming 6 07-29-2006 04:24 AM
FC 3 install - won't even start MichaelS Fedora - Installation 2 05-16-2006 10:01 PM


All times are GMT -5. The time now is 05:20 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