Автор Тема: mail  (Прочетена 1718 пъти)

Joro

  • Напреднали
  • *****
  • Публикации: 27
    • Профил
mail
« -: Feb 13, 2005, 20:17 »
Привет на всички '<img'>
Кажете ми как да прикачвам файл към писмо когато го пращам от конзолата с команда mail
10x
Активен

kennedy

  • Напреднали
  • *****
  • Публикации: 2151
  • Николай Колев
    • Профил
mail
« Отговор #1 -: Feb 14, 2005, 07:13 »
man mail --help дава следното

kennedy@linux:~> mail -help
Send options without primary recipient specified.
Usage: mail [-BDFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr]
            [-r from-addr] [-h hops] [-A account] [-R reply-addr] to-addr ...
       mail [-BDeHiInNv~] [-T name] [-A account] -f [name]
       mail [-BDeinNv~] [-A account] [-u user]

успех
Активен

"за всичко иде час" Еклесиаст 3:1
всеки пост - отговор на въпрос
-----------------
24.12.2003 "MS Free"

57r1k3

  • Напреднали
  • *****
  • Публикации: 38
    • Профил
mail
« Отговор #2 -: Feb 14, 2005, 12:13 »
man uuencode
и там към края в секция примери:
Примерен код
EXAMPLES
     The following example packages up a source tree, compresses it, uuencodes
     it and mails it to a user on another system.  When uudecode is run on the
     target system, the file ``src_tree.tar.Z'' will be created which may then
     be uncompressed and extracted into the original tree.

           tar cf - src_tree | compress |
           uuencode src_tree.tar.Z | mail sys1!sys2!user

     The following example unpacks all uuencoded files from your mailbox into
     your current working directory.

           uudecode -c < $MAIL

     The following example extracts a compressed tar archive from your mailbox

           uudecode -o /dev/stdout < $MAIL | zcat | tar xfv -

Успех!
Активен

BSD is, after all, about a commitment to technical excellence, and not about making an operating system platform into a religion.