[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Scripts to start and stop services



I often need to start/stop sendmail, mysql, and apache at once. I
tried making a script with this contents:
#!/bin/sh
/sbin/service sendmail start
/sbin/service httpd start

I put it in ~/bin and chmod 777 it. But I get permission denied when I
try to run it because I am not root. I understand that I need sudo but
I have no idea what to do. Anybody?

Thanks.

Dotan
http://lyricslist.com/lyrics/artist_albums/299/krauss_alison.php
Krauss, Alison Song Lyrics


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]