Hello,
I have a script to eleminar some accounts ...
for user in `cat` mylist.txt; the / scripts / killacct $ user; done
Must not be asked to confirmation message, how?
Somebody help me?
Hello,
I have a script to eleminar some accounts ...
for user in `cat` mylist.txt; the / scripts / killacct $ user; done
Must not be asked to confirmation message, how?
Somebody help me?
You can echo your response to the script when calling it. Like so:
so the command would beCode:for user in `cat` mylist.txt; echo 'y' | /scripts/killacct $ user; doneCode:echo 'y' | /scripts/killacct $user