04-14-2014
gsub replaces all of the longest, leftmost, nonoverlapping matching substrings it can find. The `g' in gsub stands for "global," which means replace everywhere,
So if in your output "server1-backup" word appears it will replace by 1..
so if it equal to 1 means that string is there.
then send mail..
This User Gave Thanks to Makarand Dodmis For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to write bash to superuser, when the disk space dips below 10% of the total by automatically sending an email?
It is have any sample for reference (3 Replies)
Discussion started by: foong
3 Replies
2. UNIX for Dummies Questions & Answers
rshstatus=`rsh -n lilo /db/p2/oracle/names9208/restart_names.sh`
if $rshstatus <>0 then
errstatus=1
mailx -s "xirsol8dr" ordba@xxx.com >> $log_dr
else if errstatus=0
echo "status to xirsol8dr successful"
can anyone provide if this is t he correct way to do this or is there a better way? (1 Reply)
Discussion started by: bpm12
1 Replies
3. Shell Programming and Scripting
hi,
i am very much new to shell scripting i have a requirement that i have to develop a License Renewal Alert system
that has to give a alert mail to the users before 30days of user account expiration, by checking expiration date of the user with the data base, this system will... (0 Replies)
Discussion started by: deepu_Shscripts
0 Replies
4. Shell Programming and Scripting
Hi people,
I have a file status.txt:
Following 6 ports are totally or partially unavailable:
------------------------------------------------------------
MOD LINK PORTNAMES STAT1 STAT2 STAT3 SYN TYPE
------------------------------------------------------------
8 Pr37 ... (12 Replies)
Discussion started by: gc_sw
12 Replies
5. UNIX for Advanced & Expert Users
Hi All,
Requirement is to select the data from database and send the output in mail. But the output should in HTML tabular format in mail body.
For example my select command is :
select ename,esal,edegn,dept from emp where deptno in (10,15);
In the mail body the output should :
Employee... (3 Replies)
Discussion started by: alex_us
3 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
Hi Guys,
I have a postfix server which is deferring emails. Now I need to send notification to a specific email address if:
The sender of the deferred email is: abc@example.com
Contains specific subjects: a file (/opt/subjects) contains all the subjects in place
Then need to send a... (0 Replies)
Discussion started by: linuxrulz
0 Replies
8. UNIX for Beginners Questions & Answers
Hi Team,
I got a requirement to send a mail to the individual users of a unix server about their respective groups. can some one help me to provide the script as I am unable to write that.
I tried with below lines but I come out with errors.
cat /etc/passwd | awk -F':' '{ print $1}' |... (6 Replies)
Discussion started by: harshabag
6 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
I need to check my script and change to working mode. currently it was not sending the mail and exit without calling the second script.
I need to check the file is present ="/home/Rvtools/test.csv"
if this file not found after the time retry send mail file not found
If the file exit run the... (2 Replies)
Discussion started by: ranjancom2000
2 Replies
LEARN ABOUT PHP
replmarks
REPLMARKS(1) General Commands Manual REPLMARKS(1)
NAME
replmarks - replace triangular markers in a RADIANCE scene description
SYNOPSIS
replmarks [ -e ][ -m newmod ][ -s scale ] { -x objfile | -i octree | -I mesh } modname .. [ file .. ]
DESCRIPTION
Replmarks replaces triangular markers identified by the modifier modname in each scene description file and writes the result to the stan-
dard output. The -x option indicates that each marker should be replaced by an appropriate xform(1) command on objfile. The -i option
indicates that each marker should be replaced by an instance of octree. The -I option indicates that each marker should be replaced by an
instance of the Radiance mesh mesh. One of these three options must appear on the command line, along with modname, the modifier used by
markers in the file.
Multiple modifiers may be given, as long as each one is preceded by its own -x or -i option.
The transformation for each marker is determined by its location and orientation. A marker should be a right triangle pointing like a
half-arrow in the direction of the transformed x-axis, x'. The longest side is the hypoteneuse, the second longest side is the x'-axis,
and the third longest side indicates the direction of the y'-axis. Any additional sides will be ignored (ie. a quadrilateral may be used
instead of a triangle if the extra side is small). The z'-axis is determined by the cross product of the x' and y' axes, and the origin is
the common vertex between x' and y'.
The size of the marker is ignored unless the -s option is used, where scale is a multiplier for the x'-axis length to indicate the total
scale factor. For example, a scale value of 5 with a marker length of .5 would result in a total scale factor of 2.5 to be used in the
transformation.
The -e option causes commands in the file to be expanded, and is required to replace markers from commands in the input file. Even with
this option, replmarks will not examine objects for markers. Specifically, an object included by replmarks as a result of a -x expansion
will be transferred verbatim, without regard to any surfaces therein that might have been considered as marks if they were on the main
input.
The -m option causes all replaced objects to be given the modifier newmod. Otherwise, the new object surfaces will use their originally
defined modifiers. A different replacement modifier may be given for each marker type. The marker modifier name itself is only used to
identify markers, and will not appear in the output in any form.
If no input file is given, the standard input is read.
EXAMPLE
To replace all polygons with the modifier ``knobs'' in the file input with a transformed ``knob.rad'' and write the result to output:
replmarks -x knob.rad knobs input > output
To use instances of ``tree.oct'' with scaling set to three times the tree marker length:
replmarks -s 3 -i tree.oct tree input > output
AUTHOR
Greg Ward
SEE ALSO
arch2rad(1), ies2rad(1), xform(1)
RADIANCE
3/24/94 REPLMARKS(1)