<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Arial">Hi, all.<br>
<br>
Occasionally the LTSP client connected to my Lubuntu LTSP server
won't PXE boot. There is a "No DHCP offers were received" sort
of message on the client. I believe this is probably a power
management issue that crops up sometimes when the server does
not quite properly emerge from a sleep mode.<br>
<br>
On the server, from the command line I can interactively "sudo
service isc-dhcp-server restart." But I would like to put that
in a script for a user who know even less than I do. It's OK if
the user has to enter the password to execute the command.<br>
<br>
I tried creating myscript.sh thus:<br>
#!/bin/bash<br>
sudo <font size="-1"><font face="Arial">service
isc-dhcp-server restart<br>
<br>
Then I ran "sudo chmod a+x myscript.sh" to make it
executable by all.<br>
<br>
But when I run the script choosing either Execute or Execute
in Terminal, I get no prompt for a password and it seems
that the service restart command has not run.<br>
<br>
How can I do this?<br>
</font></font></font></font>
</body>
</html>