Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Restarting DHCP and TFTP in a bash script, Restarting DHCP and TFTP in bash script
asmith88
 Posted: Apr 2 2015, 06:53 PM
Quote Post


SLF Newbie


Group: Members
Posts: 1
Member No.: 3401
Joined: 2-April 15









Hello,
This is my first time posting on here, so I am sorry if I don't give enough information.

I am trying to figure out how to write a script that would have a DHCP and TFTP restart.
I don't care if they are up or down already, I just need them to restart.

I really don't know where to go with this, so any help or direction at where I should look would be greatly appreciated.

Thank you
PM
^
otach
 Posted: Jul 8 2015, 09:19 AM
Quote Post


SLF Newbie


Group: Members
Posts: 8
Member No.: 3095
Joined: 17-May 14









QUOTE (asmith88 @ Apr 2 2015, 06:53 PM)
Hello,
This is my first time posting on here, so I am sorry if I don't give enough information.

I am trying to figure out how to write a script that would have a DHCP and TFTP restart.
I don't care if they are up or down already, I just need them to restart.

I really don't know where to go with this, so any help or direction at where I should look would be greatly appreciated.

Thank you


You can write scripts in Linux shell. A script must begin with #!/bin/bash, which indicates that this is a script. Scripts have to be made executable by executing the chmod +x SCRIPTNAME command. Here is a brief article that can help you get started: Creating shell scripts

--------------------
My life is my message. - Mahatma Gandhi
PM
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll