Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Alpine autosending email via bash script

    so I wrote a bash script that will handle a few checks to the system, network, and other things, and generates a very easy-to-read report in a file, and now I want alpine (formerly 'pine') to email the contents of this file as the body of a message to myself. Things to keep in mind:

    - I already made the system save my gmail account password
    - The bash script has the filename to be used with the alpine email message
    - Alpine is already configured to suppress the User Agent when sending.

    The problem I am having is whenever the command
    alpine {address} < report.txt
    is given, alpine just sits in the compose message screen, waiting for someone to press Ctrl+X to send the message.

    I need to bypass this for my system to run automatically without interaction. What option(s), configuration(s), or argument(s) am I missing?

    If it is not possible to bypass this part using alpine, what text-based email client (that is accessible via terminal and ssh) CAN do what I want here?

  2. #2
    bump, anyone? It's been a while since this post, any thoughts are appreciated at this point.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts