LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   e-mail (https://www.linuxquestions.org/questions/linux-newbie-8/e-mail-382365/)

ivansv 11-12-2005 03:48 AM

e-mail
 
how would u e-mail outputs from terminal commands?
for instance, when i enter iwconfig at the terminal iwant to e-mail the output as an attachment but my e-mail program can't find it if i enter it as an iwconfig attachment.
would i have to create a file with the output and then send the file?
don't know how to do it, anybody know how, i see it done all the time in forums but i've never had to do it til now.
thanks in advance for your responses, ciao.

Nylex 11-12-2005 03:59 AM

You can created a file with the output from a command using >. For example, to send the output of iwconfig to a file called test, you'd just type "iwconfig > test" but without the quotes.

Also, please use more descriptive thread titles in future as it'll help people to know if they can help you.

chrism01 11-14-2005 12:50 AM

Here's an example:
/sbin/ifconfig |mail -s <subject line> <your_emailaddress>

kees-jan 11-14-2005 08:00 AM

Uh...
How about executing the command in a terminal and then copy-and-pasting the output??

Groetjes,

Kees-Jan


All times are GMT -5. The time now is 11:15 AM.