if the "100" value is coming in the tail -f then only you will get the email. because you are grepping for 100. if the grep goes to success, then only you get email.
Hi all:
I have a problem with this simple script. It appears that it should work, but I am getting an error message.
I am trying to pass a file through a filter to grep for "urgent" and forward the message to me.
Here it is.
#!/bin/ksh
#
if (`grep urgent /tmp/test.tmp| wc -l` -gt 0)... (13 Replies)
Hi All,
I have solaris 8 on sparc machine, i need to know how i can let my system send to my e-mail any impacts or troubles.... how i can do that?! :confused:
thx, (1 Reply)
We have had an issue where the mail file filled up. Is there a setting in sendmail.cf to automatically remove old emails? Say after 14 days. If not is there any way automatically to delete older mail files?? (1 Reply)
I'm using Debian 5.0.4, exim4 and mutt.
I would like all outgoing mail sent by any/all users CC (not BCC) to a specified e-mail account.
(I do have it working for BCC using 'unseen'.)
I have spent hours of searching/reading/testing how and have not been able to find out how.
I have seen it... (0 Replies)
Hello,
I am studying few things on unux and scripting. I need a script to create bulk users in unux. I need some assistance from you for creating 100 or more User IDs using a bash script:
Here's my requirements:
1. I need to create 100 or even more user ids of different naming... (1 Reply)
I need a command or mini scripts that can find certain type of images file recursively from the current dir with files of minimum 736 width and resize them by "736 max width, relative height" and replace the source files. I currently have GD installed but can also install Imagemagick if needed, I'm... (5 Replies)
ENVIROMENT
Linux: RHEL 6.4
Log Path: /usr/iplanet/servers/https-company/logs
Log Format: user.log.03-15-2015
I have log4j log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I need a script that will run daily that... (1 Reply)
Hi Experts,
I want to check in table that if third column value is "bhu" & if it is greater than 500 it will send mail
other wise there will be no mail. but as per my script mails are still coming even value is below 500 with one blank mail(without any content) with subject line"test mail".
I... (12 Replies)
Discussion started by: dravi_laxmi
12 Replies
LEARN ABOUT PHP
imagick.setiteratorindex
IMAGICK.SETITERATORINDEX(3) 1 IMAGICK.SETITERATORINDEX(3)Imagick::setIteratorIndex - Set the iterator position
SYNOPSIS
bool Imagick::setIteratorIndex (int $index)
DESCRIPTION
Set the iterator to the position in the image list specified with the index parameter. This method is available if Imagick has been com-
piled against ImageMagick version 6.2.9 or newer.
PARAMETERS
o $index
- The position to set the iterator to
RETURN VALUES
Returns TRUE on success.
EXAMPLES
Example #1
Using Imagick.setIteratorIndex(3):
Create images, set and get the iterator index
<?php
$im = new Imagick();
$im->newImage(100, 100, new ImagickPixel("red"));
$im->newImage(100, 100, new ImagickPixel("green"));
$im->newImage(100, 100, new ImagickPixel("blue"));
$im->setIteratorIndex(1);
echo $im->getIteratorIndex();
?>
SEE ALSO Imagick.getIteratorIndex(3), Imagick.getImageIndex(3), Imagick.setImageIndex(3).
PHP Documentation Group IMAGICK.SETITERATORINDEX(3)