Sponsored Content
Full Discussion: Mailx command doubt
Top Forums Shell Programming and Scripting Mailx command doubt Post 302950065 by MadeInGermany on Monday 20th of July 2015 02:16:01 PM
Old 07-20-2015
Code:
{
ps -ef | grep "[S]rv" # A [ ] is the trick to prevent matching the grep process
echo "
Server 62 -> Used for User acessing.
Server 65 -> Used for Database acessing."
} | mailx -s "Server Running"  xyz@abc.com

Or
Code:
mailx -s "Server Running"  xyz@abc.com << EOT
`ps -ef | grep "[S]rv"`

Server 62 -> Used for User acessing.
Server 65 -> Used for Database acessing.
EOT

This User Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

doubt in mailx

Does not supplying a file to mailx cause it to run long? Cmd is like this: mailx -s "subject" recipient. Would the foll. cmd run fast: echo "content" | mailx -s "subject" recipient The recipient is a group id. Unix version:HP-UX B.11.11. Any help is appreciated. Thanks. (2 Replies)
Discussion started by: ranj@tcs
2 Replies

2. UNIX for Advanced & Expert Users

Mailx Doubt

Hi, I just wanted send corbon copy in mailx command, could you please assist me? I tried the below but it didn't work cat sample.txt|mailx -s "hi" -c xyz@gmail.com abc@gmail.com Shahnaz. (2 Replies)
Discussion started by: shahnazurs
2 Replies

3. UNIX for Dummies Questions & Answers

doubt in tr command

Hi, I am trying to understand a script and found a line as follows: tr '\211\233\240' '\040' < $IN_FILE | tr -cd '\11\12\15\40-\176' > $TEMP_FILE Can any one explain the above line .. What are they trying to translate using the tr command.. I have not used tr command.. so feeling little bit... (2 Replies)
Discussion started by: risshanth
2 Replies

4. Shell Programming and Scripting

doubt in grep command

Hello i am new shell scripting. I have a file like this, $ cat myfile ;/abc/abc.cpp@@/main/1;xyz ;/abc/abc.cpp@@/main/2;usr2 ;/abc/abc.cpp@@/main/1;abc ;/abc/abc.cpp@@/main/2;usr2 ;/abc/abc.cpp@@/main/1;usr1 when i grep the file. $ grep "abc" myfile... (8 Replies)
Discussion started by: tsaravanan
8 Replies

5. Solaris

doubt reg mailx command

Hi, Am trying to send mail from solaris host to my mailbox, but while executing mailx command am getting the follow error.Is this syntax corect? #mailx -s "subject" <myid> The flags you gave are used only when sending mail. (1 Reply)
Discussion started by: rogerben
1 Replies

6. Shell Programming and Scripting

sed command doubt

i have input files like this SFE_DOC_DATE (SFE_DOC_DATE:UniChar.:): "04/18/20" SFE_PSTNG_DATE (SFE_PSTNG_DATE:UniChar.:): "04/18/20" SFE_CREATEDON (SFE_CREATEDON:UniChar.:): "05/31/20" SFE_CLEAR_DATE (SFE_CLEAR_DATE:UniChar.:): "(NULL)" SFE_CLR_DOC_NO... (3 Replies)
Discussion started by: Gopal_Engg
3 Replies

7. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

8. HP-UX

mailx usage doubt

How to use mailx to send a mail by specifying the from: address, considering that i am the root user (3 Replies)
Discussion started by: Amit Kulkarni
3 Replies

9. UNIX for Dummies Questions & Answers

Doubt in ls command

dear users and experts, i am stuck withis command and i am unable to understand what is it doing?? ls -d * (7 Replies)
Discussion started by: seshank
7 Replies

10. Shell Programming and Scripting

Grep command doubt

Hi all, I need to find the line by using grep command with the two occurence of word in the same line. I tried the below example it prints the word choice. cat nohup.out Dictionary utl is completed. file is completed. Dictionary file is completed. grep 'Dictionary\|file'... (0 Replies)
Discussion started by: arun888
0 Replies
FSGATEWAY(1)						      General Commands Manual						      FSGATEWAY(1)

NAME
fsgateway - FUSE module to browse database's metadata, sugar datastores and xml files SYNOPSIS
mono fsgateway storage_type connection_string [fuse_option] mountpoint DESCRIPTION
FsGateway allows you to use your preferred directory navigation tool to inspect a database's metadata, sugar datastores and xml files. FsGateway allows you to compare two database structures in an easy way using the diff tool, or to find where a field is defined using the grep tool. storage_type can be: tagfs You must provide the root directory of tree to examine as connection_string parameter. xmlfs You must provide the need the XML file to read as connection_string parameter. postgresql Specify the connection_string parameter like this one: Server=localhost; Database=mydb; User ID=username; Password=password; Port=5432; sugar_datastore You must specify the directory used by the Sugar datastore as connection_string parameter. MySQL5 Specify the connection_string parameter like this one: Server=localhost; Database=mydb; User ID=username; Password=password; Port=3306; SqlServer Specify the connection_string parameter like this one: Server=localhost,port; Database=mydb; User ID=username; Password=password; or like this one: Server=localhost,port; Database=mydb; User ID=domainnameusername; Password=password; Integrated Security=SSPI For detail information about the parameters connection look at http://www.mono-project.com/SQLClient SEE ALSO
fusermount(1) AUTHOR
fsgateway was written by Torello Querci <torello@torosoft.com> This manual page was written by Marco Nenciarini <mnencia@debian.org>, for the Debian project (and may be used by others). January 2010 FSGATEWAY(1)
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy