Script to restart
hi guys, how do I make a simple script to restart a service like:
/etc/init.d/kerio-connect restart do I just need to key in that command in a script? is there a way to prompt the user like: Are you sure you want to restart? Press 'Yes' to proceed 'No' to cancel. Need your help guys, sorry so noob in linux scripting. Thanks in advance. :) |
Code:
echo "You sure want to restart the service followed by [ENTER]:" |
hi, thank you so much for you reply i tried this code Ubuntu VM
but it has an error 'r':command not found 's':command not found 'x':command not found etc. etc. Please help guys,i just tried whether the script is able to capture the keys but it does not work it throws some error. any help is greatly appreciated. Code:
#!/bin/bash |
Quote:
Code:
echo "enter stuff" |
hi guys, thank you so much for your help i came up with this one:
Code:
|
All times are GMT -5. The time now is 04:26 AM. |