Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Linux
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old November 25th, 2003, 11:04 AM
Registered User
Join Date: Nov 2003
Location: Bradford, , United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default RE: No 'Service' command??

I think I posted this in the wrong forum (what's PHP anyway?)

I'm currently working my way through 'Beginning Red Hat Linux 9’, which has been great up until chapter 9. The book goes into the details of setting up server services, explains how to start the relevant service, and then try’s to explain how to control that service from bash.

My bash prompt doesn’t have the command 'service' therefore doesn’t work and I can't progress through the chapter, (which is annoying)

Does anybody have any ideas on this? Any help would be great??

Reply With Quote
  #2 (permalink)  
Old November 26th, 2003, 07:33 AM
Registered User
Join Date: Nov 2003
Location: Bradford, , United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

I've solved this problem now, the 'service' command is in a different location to the standard bash command locations so by adding the location of the command at the start allows the shell to use the command ( Which the book dosn't say ). I guess this location can be added to the customizable options of the shell.

/sbin/service httpd start



Reply With Quote
  #3 (permalink)  
Old March 3rd, 2004, 06:22 AM
Registered User
Join Date: Mar 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

To add the /sbin directory to bash shell command search paths



This will append /sbin to the end of your existing paths.

You may find it useful to add /usr/sbin too using RH.

To check your paths type env


Muffin Man
Reply With Quote

Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop Tomcat Service "Command Window" steveAR BOOK: Professional Apache Tomcat 1 June 9th, 2008 12:16 PM
Remove Service "Command Window" steveAR Apache Tomcat 0 May 11th, 2007 11:30 AM
c# web service execute remote command? chintu926 .NET Web Services 1 May 24th, 2006 07:05 AM
restart MSSQL service from command line in windows crmpicco SQL Server 2000 4 January 25th, 2006 10:06 AM
Help with command 'service' walkeri1 Beginning PHP 0 November 25th, 2003 10:51 AM

All times are GMT -4. The time now is 12:38 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.