Activate all Linux services script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Activate all Linux services script
# 8  
Old 08-02-2009
There's no way I can get this work man. I've tried everything to fix the following:

Line 22: unexpected EOF while looking for matching ´¨'
Line 29: syntax error: unexpected end of file

I'm on Slackware and I re-wrote it without spaces between lines. Any suggestions?
# 9  
Old 08-02-2009
Quote:
Originally Posted by Dax01
There's no way I can get this work man. I've tried everything to fix the following:

Line 22: unexpected EOF while looking for matching ´¨'
Line 29: syntax error: unexpected end of file

I'm on Slackware and I re-wrote it without spaces between lines. Any suggestions?
You have broken it in your reformating attempt, I suggest recopying it and study the how's and why's of it BEFORE modifying it.

Without seeing your current code it is tough to point out the errors of your ways.

I am in NO WAY a guru at scripts, even less (Zero) about bash, however this worked as expected the first time.

-Enjoy
fh : )_~
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to Start services based on dependent services on other AIX machine

Hi, I just started working on a script. After my research, i found a command which can help me: AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2. So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies

2. Red Hat

Restart of services if port no is changed in /etc/services in RHEL

I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed. I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed. Please revert with... (10 Replies)
Discussion started by: RHCE
10 Replies

3. Red Hat

Unix services for windows & Linux\Red Hat

I am not too familiar with linux, so please keep that in mind while reading this post. We have a few linux servers joined to the domain, and linux services for windows running. I have a user that can connect to one linux server, but not another. I ran the cat /etc/passwrd and noticed the user... (0 Replies)
Discussion started by: dcatcha
0 Replies

4. Shell Programming and Scripting

Activate and deactivate function within a ksh script

Hi, I have written a function which will blink a text "Scanning...". Now in the main script when I am doing the scan in the server I want to call this function so that user will see a blinking text on the screen and at the same time script will proceed will the scan function. Once scan is... (2 Replies)
Discussion started by: suhasingale
2 Replies

5. UNIX for Dummies Questions & Answers

services in linux

hi, what is the command for checking the particular services and how can we find whether that service is up or down. Consider http service. how to check whether its up or down Edit: Question continued here. (0 Replies)
Discussion started by: satheeshkr_cse
0 Replies

6. AIX

Startup script and services

Guy's What the exact steps to mention for example this script /usr/start/start.sh to be as start up script , I want it to be automatically started when I reboot the server . (8 Replies)
Discussion started by: ITHelper
8 Replies

7. Solaris

Solaris 8 how do I enable and disable services? (equivalent of chkconfig on Linux)

I've successfully installed syslog-ng and chkconfig using the packages from the OpenCSW project, these packages install under /opt/csw. I now need to disable the default syslog daemon and enable the new service created by the OpenCSW package (/etc/init.d/cswsyslog_ng). Is there any good way to... (3 Replies)
Discussion started by: aussieos
3 Replies

8. Shell Programming and Scripting

need script for activate and deactivated databases in server

Hi all, i am using below command to find the running datases, bases this command i need a (shell/korn)script for which databases are running and which databases are not running in one file. i need out put below format. Kindly help to me. its very critical issue for me. i dont have script... (3 Replies)
Discussion started by: krishna176
3 Replies

9. UNIX for Dummies Questions & Answers

how do i activate php on linux....

i have activated mysql, and apache on my redhat 9 box, i went to mr BASH and wrote a php script, and it wouldn't execute. any help????????????????????????????????????? is there something that i need to activate??????? i have RUBY on there too,does it matter or no??? ... (2 Replies)
Discussion started by: mbabeli
2 Replies
Login or Register to Ask a Question