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
rdfproc(1)						      General Commands Manual							rdfproc(1)

NAME
rdfproc - Redland RDF processor utility SYNOPSIS
rdfproc [options] store-name command arg... EXAMPLE
rdfproc test parse http://planetrdf.com/guide/rss.rdf rdfproc test print rdfproc test serialize ntriples DESCRIPTION
The rdfproc utility allows parsing, querying, manipulating and serializing of RDF content using the Redland RDF library. The store-name is a Redland store name, typically a short identifier. The arguments to command vary and are explained in section COMMANDS below. OPTIONS
rdfproc uses the usual GNU command line syntax, with long options starting with two dashes (`-') if supported by the getopt_long function. Otherwise the short options are only available. -h, --help Show a summary of the options. -c, --contexts Use a store with Redland contexts. -n, --new Make a new store, overwriting any existing one. -o, --output FORMAT Set the output FORMAT for sequences of triples, such as from a search (find command) to a Redland serializer. Use -h or -o help to see the full list of supported formats. -p, --password Read the storage option 'password' from standard input. Terminated by end of line (' ') or end of file. This is equivalent to setting it using -t or --storage-options but does not require exposing the password in the argument list. -q, --quiet Suppress informational messages (that go to stderr) -r, --results FORMAT Set the query results syntax format. Use -h or -r help to see the full list of query result formats. The exact list of formats depends on what libraptor(3) was built with but is given correct in the usage message with -h. -s, --storage TYPE Set the Redland storage type (default 'hashes'). If environment variable RDFPROC_STORAGE_TYPE is set, the storage type given here will override it. Use -h or -s help to see the full list of query result formats. -t, --storage-options OPTIONS Set options for the the Redland storage, default is "hash-type='bdb',dir='.'" to match the default storage "hashes". For storages types such as 'mysql' that need extra options this would typically be something like "host='hostname',data- base='dbname',user='abc',password='pass'". If environment variable RDFPROC_STORAGE_OPTIONS is set, the storage options given here will be applied afterwards. -v, --version Print the Redland version and exit. -V, --verbose Show informational messages on stderr. COMMANDS
Where a node is allowed, such as NODE, SUBJECT, PREDICATE or OBJECT below, simple heuristics are used to guess which are blank node identi- fiers, URIs or literals (to add a statement with a literal, use add-typed). If the item starts with _: then it is assumed to be a blank node identifier, otherwise if it matches something:// it is assumed to be a URI, otherwise it is a literal. Literals are only allowed as objects of statements and blank nodes are not allowed as predicates. add SUBJECT PREDICATE OBJECT [CONTEXT] Add the given triple to graph, in the optional Redland context if the CONTEXT node is given. add-typed SUBJECT PREDICATE OBJECT OBJECT-LANG OBJECT-URI [CONTEXT] Add the triple with the datatyped literal object to the graph, in the optional Redland context if CONTEXT is given. arc SUBJECT OBJECT arcs SUBJECT OBJECT Show one node/all nodes that match triples (SUBJECT, ?, OBJECT) arcs-in NODE Show all properties of triples with NODE as a subject. arcs-out NODE Show all properties of triples with NODE as an object. contains SUBJECT PREDICATE OBJECT Check if the given triple is in the graph. contexts List all the contexts in the graph (if contexts are enabled). find SUBJECT|- PREDICATE|- OBJECT|- [CONTEXT] Find matching triples to the given statement where - stands for a blank that matches any node. If CONTEXT is given, only search for triples in that context node. has-arc-in NODE ARC Check that there is a triple with NODE as a subject and ARC as a predicate. has-arc-out NODE ARC Check that there is a triple with NODE as a object and ARC as a predicate. parse URI|FILENAME [SYNTAX| [BASE URI]] Parse syntax at URI into the graph using SYNTAX which can be one of rdfxml (RDF/XML, default), ntriples, turtle, rss-tag-soup (for all RSS and Atoms), grddl and guess to use content hints and protocol information to work it out. (This list changes faster than this manual page) If FILENAME is a existing file, the appropriate URI will be generated for it. If parsing returns errors, the return code will be non-0. parse-stream URI|FILENAME [SYNTAX [BASE URI [CONTEXT]] Streaming parse syntax at URI into the graph using SYNTAX which can be one of rdfxml (RDF/XML, default) or ntriples. If FILENAME is an existing file, the appropriate URI will be generated for it. If the optional CONTEXT URI is given, the triples are added to that context. If parsing returns errors, the return code will be non-0. print Print the graph triples in a simple format showing context nodes if present. query NAME|- URI|- QUERY-STRING Run QUERY-STRING query in language NAME returning variable bindings, a boolean or RDF graph depending on the query. Query language can be 'sparql' or 'rdql'. remove SUBJECT PREDICATE OBJECT [CONTEXT] Remove the given triple graph, in the optional Redland context if CONTEXT is given. remove-context CONTEXT Remove all triples in the graph with the Redland context CONTEXT. serialize [SYNTAX [URI [MIME-TYPE]]] Serializes the graph to a syntax with a particular ISYNTAX URI or Internet Media Type/MIME Type. The default is RDF/XML (NAME "rdfxml", MIME Type "application/rdf/xml") if none of the above are given. Other alternatives are "ntriples" (no MIME Type). source PREDICATE OBJECT sources PREDICATE OBJECT Show one node/all nodes that match triples (?, PREDICATE, OBJECT) target SUBJECT PREDICATE targets SUBJECT PREDICATE Show one node/all nodes that match triples (SUBJECT, PREDICATE, ?) ENVIRONMENT
RDFPROC_STORAGE_OPTIONS can be set to provide storage options instead of using the option -t, --storage-options OPTIONS. When both are given, command options are applied last. RDFPROC_STORAGE_TYPE can be set to provide a storage type instead of using the option -s, --storage TYPE. When both are given, the storage type from the command is used. CONFORMING TO
RDF/XML Syntax (Revised), W3C Recommendation, http://www.w3.org/TR/rdf-syntax-grammar/ <http://www.w3.org/TR/rdf-syntax-grammar/> N-Triples, in RDF Test Cases, Jan Grant and Dave Beckett (eds.) W3C Recommendation, http://www.w3.org/TR/rdf-testcases/#ntriples <http://www.w3.org/TR/rdf-testcases/#ntriples> SEE ALSO
redland(3), libraptor(3), rapper(1) AUTHOR
Dave Beckett - http://www.dajobe.org/ <http://www.dajobe.org/> 2010-08-29 rdfproc(1)
All times are GMT -4. The time now is 01:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy