You can use a redirector to feed the [Return] into the command.  An example:
   newlist  mytest  [EMAIL PROTECTED]  password  < /tmp/nl

Where the file /tmp/nl is simply a file with a few returns in it.

===

Usage: newlist [options] listname listadmin-addr admin-password

Options:

    -q
    --quiet
        Normally the administrator is notified by email (after a prompt)
that
        their list has been created.  This option suppresses that
        notification.

    -o file
    --output=file
        Append the alias setting recommendations to file, in addition to
        printing them to standard output.

    -h/--help
        Print this help text and exit.

You can specify as many of the arguments as you want on the command line.
The optional <immediate> argument, if present, means to send out the notice
immediately.  Otherwise, the script hangs pending input, to give time for
the person creating the list to customize it before sending the admin an
email notice about the existence of the new list.

----- Original Message -----
From: "Jonas Meurer" <[EMAIL PROTECTED]>
To: "mailman-users" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 1:28 PM
Subject: [Mailman-Users] newlist without [Return]


> Hello,
>
> Can I use the script 'newlist' in another script?
> The problem is the [Return]. I wanna exec 'newlist ...'
> in a script if ... is ...
> So, is it possible to use mailman without pressing a
> key, only giving the command line?
>
> Thanks
>    Jonas
>
> --
> Black holes were created when God divided by 0.
>
> ------------------------------------------------------
> Mailman-Users maillist  -  [EMAIL PROTECTED]
> http://mail.python.org/mailman/listinfo/mailman-users


------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

Reply via email to