> A quick question. Does anyone know how I can send an email in a > non-interactive way? All I want to do is put the contents of an entire > message into one line and post it off. If I do it like this I can call in > some bash commands (like `dmesg`). Similarly I don't want to write an expect > script to do this.
Just hook STDIN to a pipe instead of an interactive shell ... then you won't receive interactive messages/questions. echo "Whatever `cat dmesg` you like `date`" | mail [EMAIL PROTECTED] -s test1 -jim
