Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Mail subject output of script Post 11135 by ghoti on Thursday 29th of November 2001 10:50:48 AM
Old 11-29-2001
I know what you said, and I think you can do it using this.

Simply assign the output of your script to the variable SUBJECT / $SUBJECT in the above example and away you go....

I only put all the rest in there as it was the way I used it and shows most of the settings, which could be helpful fo rother solutions as well....
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to set Subject in 'mail' ?

Hi, I am trying to send some file to some mail ids using mail command in UNIX. Now the issue is I am not able to find how to add "Subject text" to the command. So I am using command like "mail abc@yahoo.com < file_name" Now if I use simple mail command I can set subject text by using... (2 Replies)
Discussion started by: hkapil
2 Replies

2. Shell Programming and Scripting

regarding the script output in the mail.

In a script I have the varliable , which holds the string V="some string" I am redirecting the value to a mailfile, which sends the mail in text form in the message box of the mail. I want to print the variable output in the red or blue color in the mail.. Can anyone plz let us know how to do... (0 Replies)
Discussion started by: mail2sant
0 Replies

3. Shell Programming and Scripting

how to run a script using cron job and send the output as attachment via e-mail using unix

how to run a script using cron job and send the output as attachment via e-mail using unix. please help me. how my cron job entry should be? As of now my cron job entry is to run the script at specific time, 15 03 * * * /path/sample.sh | mail -s "Logs" email_id In the above entry, what... (8 Replies)
Discussion started by: vidhyaS
8 Replies

4. Shell Programming and Scripting

script to mail monitoring output if required or redirect output to log file

Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions. ... (4 Replies)
Discussion started by: aix_admin_007
4 Replies

5. Shell Programming and Scripting

Redirect script output to a file and mail the output

Hi Guys, I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts. I used below but it is not working: OFILE=/home/home1/report1 echo "report1 details" > $OFILE =/home/home1/1.sh > $OFILE echo... (7 Replies)
Discussion started by: Vivekit82
7 Replies

6. Shell Programming and Scripting

[Solved] Shell script output in HTML or with table like results and mail

Hello, Currently i have a script which will disply the results in plain text format. I want to format the result in more readable format like Making bold headings and format with colors etc. Something like html and send that content as email. Please help me how i can do that. I am using... (10 Replies)
Discussion started by: joy lobo
10 Replies

7. Shell Programming and Scripting

How to write this script:- check output word and send a mail?

Hi Guys, I am not Good at scripting. I need to write a script such that if output of command shows the particular word in output then send mail to abc@compay.com -bash-3.2$ ps -ef | grep bpbkar root 6040 1 0 13:05:19 ? 0:00 bpbkar -r 2678400 -ru root -dt 47395 -to 0... (20 Replies)
Discussion started by: manalisharmabe
20 Replies

8. AIX

Mail subject splitted

Hi I have a script that is sending mail and it was working fine. But the last time it run, it gave some errors. It look like the subject was split into many receiver. I am on AIX 6.1. #!/bin/ksh # HOSTNAME=`which hostname` MACHINE=`${HOSTNAME}` # E-mail to inform hci of a stop echo "###... (9 Replies)
Discussion started by: jacquesT
9 Replies

9. Shell Programming and Scripting

Invoke a shell script in case mail with a specific subject is received

Hello fellow forum members, I have a script which returns a date (I can design the script to return the value in email), How can I design the script in AIX to invoke another shell script which performs some set of actions. Procmail doesnt work in AIX. (4 Replies)
Discussion started by: ektubbe
4 Replies

10. Shell Programming and Scripting

A shell script to run a script which don't get terminated and send a pattern from the output by mail

Hi Guys, I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies
PARSEBLAST(1)						      General Commands Manual						     PARSEBLAST(1)

NAME
parseblast - Filtering High-scoring Segment Pairs (HSPs) from WU/NCBI BLAST. SYNOPSIS
parseblast [options] <results.from.blast> DESCRIPTION
This manual page documents briefly the parseblast command. Different output options are available, the most important here are those allowing to write HSPs in GFF format (GFFv1, GFFv2 or APLOT). Sequences can be included in the GFF records as a comment field. Furthermore, this script can output also the alignments for each HSP in ALN, MSF or tabular formats. NOTE - If first line from blast program output (the one containing which flavour has been run, say here BLASTN, BLASTP, BLASTX, TBLASTN or TBLASTX), is missing, the program assumes that it contains BLASTN HSP records. So that, ensure that you feed the parseblast script with a well formatted BLAST file. Sometimes there are no spaces between the HSP coords and its sequence, as it sometimes happens in Web-Blast or Paracel-Blast outputs. Now those records are processed ok and that HSP is retrieved as well as "standard" ones. WARNING - Frame fields from GFF records generated with parseblast contain BLAST frame (".","1","2","3") instead of the GFF standard values (".","0","1","2"). As the frame for reverse strand must be recalculated from the original sequence length, we suggest users to post-process the GFF output from this script with a suitable filter that fix the frames (in case that the program that is going to use the GFF records will not work with the original BLAST frames). We provide the command-line option "--no-frame" to set frames to "." (meaning that there is no frame). OPTIONS
parseblast prints output in "HSP" format by default (see below). It takes input from <STDIN> or single/multiple files, and writes its out- put to <STDOUT>, so user can redirect to a file but he also could use the program as a filter within a pipe. "-N", "-M", "-P", "-G", "-F", "-A" and "-X" options (also the long name versions for each one) are mutually exclusive, and their precedence order is shown above. GFF OPTIONS: -G, --gff Prints output in GFFv1 format. -F, --fullgff Prints output in GFFv2 "alignment" format ("target"). -A, --aplot Prints output in pseudo-GFF APLOT "alignment" format. -S, --subject Projecting GFF output by SUBJECT (default by QUERY). -Q, --sequence Append query and subject sequences to GFF record. -b, --bit-score Set <score> field to Bits (default Alignment Score). -i, --identity-score Set <score> field to Identities (default Alignment). -s, --full-scores Include all scores for each HSP in each GFF record. -u, --no-frame Set all frames to "." (GFF for not available frames). -t, --compact-tags Target coords+strand+frame in short form (NO GFFv2!). ALIGNMENT OPTIONS: -P, --pairwise Prints pairwise alignment for each HSP in TBL format. -M, --msf Prints pairwise alignment for each HSP in MSF format. -N, --aln Prints pairwise alignment for each HSP in ALN format. -W, --show-coords Adds start/end positions to alignment output. GENERAL OPTIONS: -X, --expanded Expanded output (producing multiline output records). -c, --comments Include parameters from blast program as comments. -n, --no-comments Do not print "#" lines (raw output without comments). -v, --verbose Warnings sent to <STDERR>. --version Prints program version and exits. -h, --help Shows this help and exits. OUTPUT FORMATS
: "S_" stands for "Subject_Sequence" and "Q_" for "Query_Sequence". <Program> name is taken from input blast file. <Strands> are calculated from <start> and <end> positions on original blast file. <Frame> is obtained from the blast file if is present else is set to ".". <SCORE> is set to Alignment Score by default, you can change it with "-b" and "-i". If "-S" or "--subject" options are given, then QUERY fields are referred to SUBJECT and SUBJECT fields are relative to QUERY (this only available for GFF output records). Dots ("...") mean that record description continues in the following line, but such record is printed as a single line record by parse- blast. [HSP] <- (This is the DEFAULT OUTPUT FORMAT) <Program> <DataBase> : ... ... <IdentityMatches> <Min_Length> <IdentityScore> ... ... <AlignmentScore> <BitScore> <E_Value> <P_Sum> : ... ... <Q_Name> <Q_Start> <Q_End> <Q_Strand> <Q_Frame> : ... ... <S_Name> <S_Start> <S_End> <S_Strand> <S_Frame> : <S_FullDescription> [GFF] <Q_Name> <Program> hsp <Q_Start> <Q_End> <SCORE> <Q_Strand> <Q_Frame> <S_Name> [FULL GFF] <- (GFF showing alignment data) <Q_Name> <Program> hsp <Q_Start> <Q_End> <SCORE> <Q_Strand> <Q_Frame> ... ... Target "<S_Name>" <S_Start> <S_End> ... ... E_value <E_Value> Strand <S_Strand> Frame <S_Frame> [APLOT] <- (GFF format enhanced for APLOT program) <Q_Name>:<S_Name> <Program> hsp <Q_Start>:<S_Start> <Q_End>:<S_End> <SCORE> ... ... <Q_Strand>:<S_Strand> <Q_Frame>:<S_Frame> <BitScore>:<HSP_Number> ... ... # E_value <E_Value> [EXPANDED] MATCH(<HSP_Number>): <Q_Name> x <S_Name> SCORE(<HSP_Number>): <AlignmentScore> BITSC(<HSP_Number>): <BitScore> EXPEC(<HSP_Number>): <E_Value> Psum(<P_Sum>) IDENT(<HSP_Number>): <IdentityMatches>/<Min_Length> : <IdentityScore> % T_GAP(<HSP_Number>): <TotalGaps(BothSeqs)> FRAME(<HSP_Number>): <Q_Frame>/<S_Frame> STRND(<HSP_Number>): <Q_Strand>/<S_Strand> MXLEN(<HSP_Number>): <Max_Length> QUERY(<HSP_Number>): length <Q_Length> : gaps <Q_TotalGaps> : ... ... <Q_Start> <Q_End> : <Q_Strand> : <Q_Frame> : <Q_FullSequence> SBJCT(<HSP_Number>): length <S_Length> : gaps <S_TotalGaps> : ... ... <S_Start> <S_End> : <S_Strand> : <S_Frame> : <S_FullSequence> SEE ALSO
ali2gff(1), blat2gff(1), gff2aplot(1), sim2gff(1). AUTHOR
parseblast was written by Josep F. Abril <abril@imim.es>. This manual page was written by Nelson A. de Oliveira <naoliv@gmail.com>, for the Debian project (but may be used by others). Mon, 21 Mar 2005 21:44:15 -0300 PARSEBLAST(1)
All times are GMT -4. The time now is 06:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy