05-24-2016
found the solution using mutt:
mutt -e 'set content_type=text/html' -s 'subject' 'email@example.com' </tmp/output.html
Last edited by Corona688; 05-24-2016 at 04:09 PM..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone,
I was doing some practising with Unix and accidentally created a file with the name --------------------
Yeah, it was UNINTENTIONALLY. I tried removing it various ways like
rm '--------------'
rm '-.*'
and all other sorts, but Unix keeps detecting that as an option stuff...
... (2 Replies)
Discussion started by: scmay
2 Replies
2. UNIX for Dummies Questions & Answers
i'm a relative newbie to unix (i'm on OSX) and i have a specific problem i'm tripped up on:
i'm piping the output of top (in log format) into an awk command which formats the information (and eventually will send it out continuously via udp/osc to another app). my problem is with what comes up... (4 Replies)
Discussion started by: ohhmyhead
4 Replies
3. UNIX for Advanced & Expert Users
I'm wrting a program which needs to get the following information of a sever by calling some lib fuctions or system calls, so can anybody help to tell me those function names or where I can find the description of them ?
CPU usage
Memory usage
Load procs per min
Swap usage
Page I/O
Net I/O... (1 Reply)
Discussion started by: xbjxbj
1 Replies
4. Shell Programming and Scripting
is there anyway to make while run a command faster than per second?
timed=60
while
do
command
sleep 1
done
i need something that can run a script for me more than one time in one second. can someone help me out here? (3 Replies)
Discussion started by: Terrible
3 Replies
5. Programming
I'm making a program that you input the month and year, and it creates a calender for that month of that year. This is my largest project yet, and I broke it up into several source files.
cal.c
#include "cal.h"
#include <stdio.h>
main() {
int month, year;
scanf("%d %d", &month,... (3 Replies)
Discussion started by: Octal
3 Replies
6. UNIX for Dummies Questions & Answers
I'm not sure if the problem I'm seeing is an artifact of sed or simply a beginner's mistake. Here's the problem: I want to add a zero-width space following each underscore between XML tags. For example, if I had the following xml:
<MY_BIG_TAG>This_is_a_test</MY_BIG_TAG>
It should look like... (8 Replies)
Discussion started by: rhetoric101
8 Replies
7. Shell Programming and Scripting
what is wrong with the below script:
---------------------------------------------------------------------------------
#!/bin/bash
echo "Setting JrePath..."
grep -w "export JrePath" /etc/profile
Export_Status=$?
if
echo "JrePath declared"
elif
echo "JrePath not declared"
echo... (4 Replies)
Discussion started by: proactiveaditya
4 Replies
8. HP-UX
Our comp-operator has come across a peculiar ‘feature'. We have this directory where we save all the reports that were generated for a particular department for only one calendar year. Currently there are 45,869 files. When the operator tried to backup that drive it started to print a flie-listing... (3 Replies)
Discussion started by: vslewis
3 Replies
9. Solaris
Solaris 10 10/09 s10s_u8wos_08a SPARC 16cpus 128MB, uptime 150+ days,
2 db zones (Oracle 9 & 10), 3 application zones.
This is from a system that was literally crawling, 60 seconds to execute a
single command. I had to reboot to clear it. Data is from runs of
prstat and top, and iostat. ... (3 Replies)
Discussion started by: jim mcnamara
3 Replies
LEARN ABOUT DEBIAN
muttprofile
MUTTPROFILE(1) User Contributed Perl Documentation MUTTPROFILE(1)
NAME
muttprofile - Choose a Mutt Profile
SYNOPSIS
muttprofile [-a|--active string] [-d|--dir directory] [-h|--help] [-p|--profile regexp] [-v|--view] [-V|--Version] [profile]
DESCRIPTION
muttprofile is a simple utility to choose a profile to be used with Mutt email-client. It has two operating modes: command-line and inter-
active. Muttprofile goes to interactive mode if no command-line arguments are present or option -v|--view is present without profile name.
Muttprofile looks for profile files in the Mutt directory, opens them and looks for NAME and DESC definitions. It then creates a symbolic
link to the profile chosen by the user. The rest of the work is done with a Mutt macro.
USAGE
Interactive mode:
Type the name of the profile and the program creates a symlink to load the profile. Press <tab> to complete, <ctrl-d> to see list of
choices.
Command-line options:
-a | --active Set the name for active profile symlink, default is profile.active
-d | --dir Set the Mutt directory, default is ~/.mutt
-h | --help prints a short help and exits
-p | --profile (Perl) Regexp to match profile files in Mutt directory
-v | --view Instead of creating a symlink, view profile contents
-V | --version prints the version information and exits (use --version for long and -V for short version)
profile if profile exits, create the symlink to load it from Mutt, otherwise exit with error
INSTALL
Muttprofile requires no installation, but you might have to check the first line of the file ("#!/usr/bin/perl -w") and change the path to
perl if needed ('which perl' might be useful here :-)
SETTING UP PROFILES
Muttprofile checks the profile files for the following information:
# NAME: name for your profile
# DESC: description of your profile
This information is used for choosing and displaying available profiles. DESC is optional, but if NAME is missing, filename is used
instead.
USING MUTTPROFILE FROM MUTT
Perhaps the easiest way to invoke muttprofile from mutt is to bind a key with mutt macro command. For example, adding this to your mut-
trc-file
macro index <F10> "!muttprofile
:source ~/.mutt/profile.active
m" "New message with profile"
binds the function key <F10> to start muttprofile, load the profile and start a new message
EXIT CODES
The default exit codes for muttprofile are:
0 OK
1 PROFILE ALREADY ACTIVE
2 ERROR
These codes can be used in shell scripts etc.
FURTHER INFORMATION
Discussion of profiles with Mutt: http://www.iki.fi/martti.rahkila/mutt/
Mutt home page: http://www.mutt.org
MODULES
muttprofile uses the perl modules "Term::Complete" and "Getopt::Long" that both come with the Perl distribution.
LICENCE
muttprofile is distibuted under GNU General Public Licence (GPL), same as Mutt. For details, see http://www.gnu.org/copyleft/gpl.html
BUGS
None known so far. Inevitably to appear sooner or later.
VERSION
1.0.0 (current)
First public release.
2000-05-10 Martti Rahkila
AUTHOR
Martti Rahkila
martti.rahkila@iki.fi
http://www.iki.fi/martti.rahkila/mutt
SEE ALSO
mutt(1), perl(1)
perl v5.8.0 2003-01-15 MUTTPROFILE(1)