how can i send an attached file from command line? - Networking

This is a discussion on how can i send an attached file from command line? - Networking ; hi, i need to "cron" a mail attaching a binary file. i am using uuencode file | mail -s subject destination uuencode now is not in standard packages, so i compiled it. is there another easier form to do this? ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: how can i send an attached file from command line?

  1. how can i send an attached file from command line?

    hi,

    i need to "cron" a mail attaching a binary file. i am using

    uuencode file | mail -s subject destination

    uuencode now is not in standard packages, so i compiled it.

    is there another easier form to do this?

    tia


  2. Re: how can i send an attached file from command line?

    In news:1171438206.887703.277020@h3g2000cwc.googlegro ups.com,
    rh00667 wrote:

    > i need to "cron" a mail attaching a binary file. i am using
    > uuencode file | mail -s subject destination
    > uuencode now is not in standard packages, so i compiled it.
    > is there another easier form to do this?


    "mutt -a ..." or "uuenview -a ..."

  3. Re: how can i send an attached file from command line?

    On Feb 14, 8:42 am, "ynotssor" wrote:
    >
    > "mutt -a ..." or "uuenview -a ..."


    thanks! works ok!
    cat $FILE_BODY | mutt -nx -a $FILE -s "$SUBJECT" $MAIL_TO

    exist any command (-e command) to avoid piping the body and obtain
    some like:

    mutt -nx -a $FILE -s "$SUBJECT" -i $FILE_BODY $MAIL_TO

    ????

    tia


+ Reply to Thread