Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    1

    Default Script terminate an account

    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?

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    You can echo your response to the script when calling it. Like so:

    Code:
    for user in `cat` mylist.txt; echo 'y' | /scripts/killacct $ user; done
    so the command would be
    Code:
    echo 'y' | /scripts/killacct $user

Similar Threads & Tags
Similar threads

  1. Terminate an Account
    By meeti in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-24-2008, 10:18 AM
  2. Script to terminate all suspended accounts
    By bargainhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-30-2007, 11:18 AM
  3. terminate account
    By webmarket in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-04-2007, 07:01 PM
  4. Terminate Account ?
    By youngLofty in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-02-2006, 09:24 AM
  5. Mass Terminate Script
    By clanosiris in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-30-2005, 11:02 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube