Can't install a soft with a script .sh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can't install a soft with a script .sh
# 1  
Old 06-23-2006
Can't install a soft with a script .sh

Hello !

I just want to install Oreon (it's a plugin for Nagios) but I can't, I have this error when I run the script install.sh

# ./install.sh
functions: 21: Syntax error: "(" unexpected

Have you got an idea ?

Tx
# 2  
Old 06-23-2006
Sure. Looks like a syntax error. Post the code.

You could do this as well.

In the second line of the script, add set -n ,run the script and then see what is missing.
# 3  
Old 06-23-2006
I have added set -n in the second line of the script and now I've :

./install.sh: 241: Syntax error: "(" unexpected

On linux it's running but not on FreeBSD...
For the code, I can post on the forum but there are 566 lines... are you sure that you want it ? And It's not my script, it the offical script of Oreon...

Have you got any idea ?
# 4  
Old 06-23-2006
Post the code in and around of line #241.
# 5  
Old 06-26-2006
the code :

236 ## Functions
237 ##
238
239 # When exit on error
240
241 function error()
242 {
243 echo "ERROR"
244 exit 2
245 }
246
247 # Check apache version, and configure it. Ask to restart apache server
248 # Make a copy of the original file as httpd.conf.initial
249
# 6  
Old 06-26-2006
Quote:
Originally Posted by wappyboy
the code :

236 ## Functions
237 ##
238
239 # When exit on error
240
241 function error()
242 {
243 echo "ERROR"
244 exit 2
245 }
246
247 # Check apache version, and configure it. Ask to restart apache server
248 # Make a copy of the original file as httpd.conf.initial
249
Make function error() to function error
# 7  
Old 06-26-2006
Hi,

Yes, now I don't have error but it's doesn't work ;-( ...

Shell :

bash2-2.05b# ./install.sh
bash2-2.05b#
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Soft links question

Hello. I have some main directories. For example : /main_dir1 /main_dir2In main_dir2, I have a sub dir named sub_dir2-1 with 2 files in it ( file_2-1, file_2-2 ) /main_dir2sub_dir2-1file_2-1 file_2-2From "/main_dir1/A/B/C" I make a soft link ln -s /main_dir2/sub_dir2-1 ... (6 Replies)
Discussion started by: jcdole
6 Replies

2. Solaris

Extend a soft partition

Hi, I need to extend a soft partition from 20G to 100G. New disk is already added as a meta device. This soft partition is already assigned to a guest LDOM. Can someone let me know the steps to increase soft partition so guest LDOM can recognize the new space. Thanks (1 Reply)
Discussion started by: Gho
1 Replies

3. Shell Programming and Scripting

Soft link

can u help me out how change the hooked file below. VEUEMASTER.txt -> /sbvnj/kfls//VSUE_OBR_MAER.txt.201503230800 (4 Replies)
Discussion started by: ramkumar15
4 Replies

4. Shell Programming and Scripting

soft link issue

Hi , When installing oracle software a set of directories are created under the home directories. Since the home directory is usually not big , i would like to create a soft link from the home directory to mount point with alot of free space , that way the logs will not be wriiten under the... (1 Reply)
Discussion started by: yoavbe
1 Replies

5. Programming

creating soft links

i'm trying to write a c code to copy a soft link over to a specified directory. Is it possible to do this without using symlink()? if so, what can I use? Thanks! (2 Replies)
Discussion started by: l flipboi l
2 Replies

6. Linux

install macbook pro fedora10 ???((<<if can install, how to install? >> ))

If may install can Tells everybody ??? (0 Replies)
Discussion started by: kzBSD
0 Replies

7. Shell Programming and Scripting

Shell Script to extract Soft

...Software and Disk information... Hey guys.... I need to extract a bunch of information from a set of servers running Solaris 10 where I need to know for each server: - all OS Versions and patch levels - 3rd party COTS or opensource software/processes running on all servers (several... (0 Replies)
Discussion started by: northern1969
0 Replies

8. UNIX for Dummies Questions & Answers

links.... soft or hard.. not sure?

hi, i am in a directory, have 2 files as below then do a ls -l gives the below lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/filea lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/fileb now, when i do a cd /adir, the system said, adir not... (5 Replies)
Discussion started by: yls177
5 Replies

9. UNIX for Dummies Questions & Answers

soft rebooting

When I do a hard reboot, the system recognizes both the ttya and the ttyb, but when I do a hard reboot, it only doesn't recognize the ttyb. Is there a way I can fix this??? Thanks!:confused: (5 Replies)
Discussion started by: nattie_h
5 Replies

10. UNIX for Dummies Questions & Answers

Soft Linking - How to remove!?

Summary: I added a soft link to a page (using the ln -s command). I was using this as a "symbolic link", so users would not know they had been redirected to a new URL (they would only see the URL they had typed in, even tho the content isn't there). However, I created an incorrect link when I... (1 Reply)
Discussion started by: aburkart
1 Replies
Login or Register to Ask a Question