09-30-2005
this is what I used
mailx -s "SUBJECT" <EMAIL ADDRESS> < "MESSAGE"
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I need to send an email from an UNIX shell script along with an attachment.
I am working on an HP-UX 11.00 system. The only mailing program which provides adding an attachment to a mail is "pine". However pine is not installed on my system and I cannot install it too due to the server being a... (2 Replies)
Discussion started by: navin
2 Replies
2. Shell Programming and Scripting
Hi All,
I am not too familiar with Korne script so I need as much help as possible on this ;)
What I want to do is: from the excel file on my computer, I want to take certain field from this xls file and put it in txt or cvs format in specific width column. Then fpt this file into the server. ... (51 Replies)
Discussion started by: CamTu
51 Replies
3. Shell Programming and Scripting
Hi,
This is what my script looks like:
cd /var/apache/htdocs/MyApp
var=`more /var/apache/htdocs/MyApp/activate`
mailx -s "from MyApp" selma@mail.com <<EOT
intro:
--------------
$var
EOT
I get output that I would like to see when I invoke the script manually, this is is the... (2 Replies)
Discussion started by: Selma
2 Replies
4. Shell Programming and Scripting
All
Please help to provide "goto" functionality in KORN shell script.
ex:
1: Command
Process some command
if check some variable
true
goto 1
else
process some other
Please help to implement this example in korne... (1 Reply)
Discussion started by: DeepakXavier
1 Replies
5. Shell Programming and Scripting
I have a Unix server with SunOS 5.8 installed on it. I have set a cron job which will send mail across the two different networks. As of now i can only send mails to the abc.com who owns the server but would also like to send it to xyz.com is there any setting or parameter wherein i need to add... (2 Replies)
Discussion started by: nimish
2 Replies
6. Shell Programming and Scripting
Hi,
I need some help regarding in writing a Korne shell script, in determining the fixed length records in a data file. We have already utility in place, which does this work. The Code for this is as below. In the below $1 is the parameter passed to the script, which is the data file name.
... (4 Replies)
Discussion started by: nrajesh_2009
4 Replies
7. Shell Programming and Scripting
Hi Everyone,
I have tried with the following Code for each of the following, but that does not seem to serve the purpose. Can someone give some pointers please.
1) A Korne Shell which asks the user to enter the name of a file when searching it
recursively (using the find command) in the... (3 Replies)
Discussion started by: marconi
3 Replies
8. Shell Programming and Scripting
I am new to Korne Shell Scripting. Can someone help me with a Korne Shell which asks the user :-
1) to enter the name of a file when searching it recursively (using the find
command) in the home directory of this user.
2) for a date (format AAMMJJ) and a directory and then searches ... (4 Replies)
Discussion started by: marconi
4 Replies
9. Shell Programming and Scripting
In Korne Shell Scripting, how to search recursively in a directory, the list of files modified after a given date ..
Thanks in advance.. (1 Reply)
Discussion started by: marconi
1 Replies
10. Shell Programming and Scripting
I am trying to write a Korne Shell asking the user for a date and a directory and then search recursively in this directory the list of files modified after the date chosen. But I am not getting good results when I Test it...
#!/usr/bin/ksh
echo "Enter a date (YYYYMMDD) "
read date
touch -t... (2 Replies)
Discussion started by: marconi
2 Replies
LEARN ABOUT CENTOS
mc-tool
MC-TOOL(1) Utilities MC-TOOL(1)
NAME
mc-tool - manipulate Mission Control accounts from the command line
SYNOPSIS
mc-tool list
mc-tool add PROFILE DISPLAY-NAME [PARAMETER-SETTINGS...]
mc-tool add MANAGER/PROTOCOL [PARAMETER-SETTINGS...]
mc-tool update ACCOUNT [PARAMETER-SETTINGS...]
mc-tool display ACCOUNT DISPLAY-NAME
mc-tool nick ACCOUNT NICKNAME
mc-tool service ACCOUNT SERVICE-NAME
mc-tool icon ACCOUNT ICON
mc-tool show ACCOUNT
mc-tool get ACCOUNT PARAMETER [PARAMETER...]
mc-tool auto-presence ACCOUNT STATUS [MESSAGE]
mc-tool request ACCOUNT STATUS [MESSAGE]
mc-tool auto-connect ACCOUNT on|off
mc-tool remove ACCOUNT
DESCRIPTION
mc-tool's usage depends on its first argument (the "command")
SPECIFYING ACCOUNTS
Where an account name is needed, it may be given as a full object path (e.g. /org/freedesktop/Telepathy/Account/gabble/jabber/example), or
as the unique account-specific suffix (e.g. gabble/jabber/example).
SPECIFYING PARAMETER SETTINGS
Many commands take arguments that represent Telepathy connection manager parameters (see the Telepathy Specification for details of these).
Each argument has the following form:
TYPE:NAME=VALUE
where TYPE is either int, uint, bool, or string (other parameter types exist, but are currently unsupported by mc-tool), NAME is the name
of the connection manager parameter (e.g. account or password), and VALUE is the parameter's value (with integers in decimal, and booleans
as 0 or 1).
The update command also accepts arguments of the form clear:NAME which delete the named parameter from the account configuration.
LIST
mc-tool list lists the available accounts.
ADD
mc-tool add adds an account. The connection manager and protocol can either be given as the name of a Mission Control profile, (e.g.
gtalk), or as a slash-separated connection manager name and protocol (e.g. gabble/jabber).
DISPLAY
mc-tool display ACCOUNT DISPLAY-NAME sets the DisplayName property of ACCOUNT to DISPLAY-NAME.
NICK
mc-tool nick ACCOUNT NICKNAME sets the Nickname property of ACCOUNT to NICKNAME.
SERVICE
mc-tool service ACCOUNT SERVICE-NAME sets the Service property of ACCOUNT to SERVICE-NAME.
ICON
mc-tool icon ACCOUNT ICON sets the Icon property of ACCOUNT to ICON.
SHOW
mc-tool show ACCOUNT shows information about ACCOUNT.
GET
mc-tool get ACCOUNT PARAMETER [PARAMETER...] shows the values of the given parameters of ACCOUNT.
ENABLE
mc-tool enable ACCOUNT sets the Enabled property of ACCOUNT to True.
DISABLE
mc-tool disable ACCOUNT sets the Enabled property of ACCOUNT to False.
AUTO-PRESENCE
mc-tool auto-presence ACCOUNT STATUS [MESSAGE] sets the AutomaticPresence property of ACCOUNT to STATUS with optional message MESSAGE.
REQUEST
mc-tool request ACCOUNT STATUS [MESSAGE] sets the RequestedPresence property of ACCOUNT to STATUS with optional message MESSAGE; this is
how you tell an account to connect or go offline, for example.
AUTO-CONNECT
mc-tool auto-connect ACCOUNT on sets the ConnectAutomatically property of ACCOUNT to True. mc-tool auto-connect ACCOUNT off sets it to
False.
Telepathy July 2009 MC-TOOL(1)