Have problem to send email from command line according to the posts like this one:
Did not touch the postfix configuration part though, left it unchanged. But I never get it work. No error no mail in my hotmail.com. I must have missed something about the configuration. What I want to do is to send email to friends, and even my own hotmail account, from the command line when I am in the campus, office and home (I have wireless internet access at these three places where I do my stuff mostly.) I am using Ubuntu 11.10 on Compaq CQ630 laptop. My ISP is SHAW.COM and I do not have a domain at this moment.
Thanks a lot! YF
hi all
How do I send email from command prompt?
i tried this
# mutt -s "Test mail" -a /root/Desktop/email1.txt XXXXX@yahoo.co.in < /root/Desktop/email.txt
Error sending message, child exited 71 (Operating system error.).
Segmentation fault
#
and also
root@localhost ~]# /bin/mail -s "what... (0 Replies)
Hey Guys,
I have been trying to send a email as ccto a email ID .However it seems the -c option is not working in HP UX system.
It is shooting an error as "mailx: illegal option -- c"
My script isin the below manner:
mailx -c EMAIL_IDS_CC# -s 'BDC reminder' -r sender@email.com... (1 Reply)
Help with script that will check log, then find a match is found, add that as the subject line.
1. The script will always run as a deamon.. and scan the event.log file
2. when a new 101 line is added to the event.log file, have the script check position 5,6 and 7 which is the job name, which... (2 Replies)
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Hi !
I am a newbie and never officially wrote a shell script before.
The requirement for this script is :
1) Read a file called 'bpm.log' and identify if it has a specific text such as 'this is the text'. Its a static value and that is the only text we need to read.
2) If that... (2 Replies)
Hello all
I'm trying to write a script to send an email, so I can be nnotified when something is going wrong with my system.
I've tried many options with no luck:
mail -s "You've got mail" somebody@example.com
echo "Mail Body" | mail -s "Subject" somebody@example.com
I tried also to... (1 Reply)
Hello Unix Experts!
We are on AIX 6.1 TL6
I am trying to develop a script that does the following:
It should send the output of "df -g /directory/folder" command as an email to a user(someone@company.com)
This is too simple and i can research on how to do it, but it would be great if... (2 Replies)
I am currently try to write a simple script with the following condition, but so far not having luck as the exit code would always be 0.
Run remote command to read a file and grep for test word.
if test word is in the file, send email.
if not, do nothing
also possible to ssh to multiple... (3 Replies)
Hello Experts,
Greeting to all of you.
I have a requirement, that we have a shell script status.sh
that check the status of server and server status shows as status.sh
Enterprise Server - Running
Admin Server - Shutdown
Requirement is like whenever the output shows shutdown it should... (2 Replies)
Hello Forum,
I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies
LEARN ABOUT DEBIAN
debconf-apt-progress
DEBCONF-APT-PROGRESS(1) Debconf DEBCONF-APT-PROGRESS(1)NAME
debconf-apt-progress - install packages using debconf to display a progress bar
SYNOPSIS
debconf-apt-progress [--] command [args ...]
debconf-apt-progress --config
debconf-apt-progress --start
debconf-apt-progress --from waypoint --to waypoint [--] command [args ...]
debconf-apt-progress --stop
DESCRIPTION
debconf-apt-progress installs packages using debconf to display a progress bar. The given command should be any command-line apt frontend;
specifically, it must send progress information to the file descriptor selected by the "APT::Status-Fd" configuration option, and must keep
the file descriptors nominated by the "APT::Keep-Fds" configuration option open when invoking debconf (directly or indirectly), as those
file descriptors will be used for the debconf passthrough protocol.
The arguments to the command you supply should generally include -y (for apt-get or aptitude) or similar to avoid the apt frontend
prompting for input. debconf-apt-progress cannot do this itself because the appropriate argument may differ between apt frontends.
The --start, --stop, --from, and --to options may be used to create a progress bar with multiple segments for different stages of
installation, provided that the caller is a debconf confmodule. The caller may also interact with the progress bar itself using the debconf
protocol if it so desires.
debconf locks its config database when it starts up, which makes it unfortunately inconvenient to have one instance of debconf displaying
the progress bar and another passing through questions from packages being installed. If you're using a multiple-segment progress bar,
you'll need to eval the output of the --config option before starting the debconf frontend to work around this. See "EXAMPLES" in the
EXAMPLES section below.
OPTIONS --config
Print environment variables necessary to start up a progress bar frontend.
--start
Start up a progress bar, running from 0 to 100 by default. Use --from and --to to use other endpoints.
--from waypoint
If used with --start, make the progress bar begin at waypoint rather than 0.
Otherwise, install packages with their progress bar beginning at this "waypoint". Must be used with --to.
--to waypoint
If used with --start, make the progress bar end at waypoint rather than 100.
Otherwise, install packages with their progress bar ending at this "waypoint". Must be used with --from.
--stop
Stop a running progress bar.
--no-progress
Avoid starting, stopping, or stepping the progress bar. Progress messages from apt, media change events, and debconf questions will
still be passed through to debconf.
--dlwaypoint percentage
Specify what percent of the progress bar to use for downloading packages. The remainder will be used for installing packages. The
default is to use 15% for downloading and the remaining 85% for installing.
--logfile file
Send the normal output from apt to the given file.
--logstderr
Send the normal output from apt to stderr. If you supply neither --logfile nor --logstderr, the normal output from apt will be
discarded.
-- Terminate options. Since you will normally need to give at least the -y argument to the command being run, you will usually need to use
-- to prevent that being interpreted as an option to debconf-apt-progress itself.
EXAMPLES
Install the GNOME desktop and an X window system development environment within a progress bar:
debconf-apt-progress -- aptitude -y install gnome x-window-system-dev
Install the GNOME, KDE, and XFCE desktops within a single progress bar, allocating 45% of the progress bar for each of GNOME and KDE and
the remaining 10% for XFCE:
#! /bin/sh
set -e
case $1 in
'')
eval "$(debconf-apt-progress --config)"
"$0" debconf
;;
debconf)
. /usr/share/debconf/confmodule
debconf-apt-progress --start
debconf-apt-progress --from 0 --to 45 -- apt-get -y install gnome
debconf-apt-progress --from 45 --to 90 -- apt-get -y install kde
debconf-apt-progress --from 90 --to 100 -- apt-get -y install xfce4
debconf-apt-progress --stop
;;
esac
RETURN CODE
The exit code of the specified command is returned, unless the user hit the cancel button on the progress bar. If the cancel button was
hit, a value of 30 is returned. To avoid ambiguity, if the command returned 30, a value of 3 will be returned.
AUTHORS
Colin Watson <cjwatson@debian.org>
Joey Hess <joeyh@debian.org>
2012-09-10 DEBCONF-APT-PROGRESS(1)