Hi,
I am trying to write a script to Count Files in a directory located on a remote server and send an email Notification if it exceeds a limit. The code given below doesnot check the condition and sends the mail everytime irrespective of the condition. I have put this script in the cron. Can... (10 Replies)
Hi !
I am a newbie and never officially wrote a shell script before.
The requirement for this script is :
1) Read a file called 'bpm.log' and identify if it has a specific text such as 'this is the text'. Its a static value and that is the only text we need to read.
2) If that... (2 Replies)
Hi Experts,
I have a script like
$ORACLE_HOME/bin/sqlplus username/password # << ENDSQL
set pagesize 0 trim on feedback off verify off echo off newp none timing off
set serveroutput on
set heading off
spool Schemaerrtmp.txt
select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
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)
All,
I am new to shell scripting and trying to get the count of files that starts with error and with extension .out, if the count is greater than 0 and zip the file and send an email with the content of error.out file, here is my script
cd /temp
testcount =$('find . -name '*.out' -print |... (4 Replies)
Hi.
I'm new on this forum and I need if possible someone to help me with one script.
The script should act like this:
- should be run by crontab and have next parameters:
script_name $par1 $par2 $par3 $par4
where script will search in dir $par1 for files with mask $par2 and if number of... (2 Replies)
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
i have below code to count number of rows in file1.txt, if the row count is more than one then i have sending an email along with file1.txt attached and fail the process(do nothing if count is <=1),
if I test individually count part works good but when i include the email part its not working,... (1 Reply)
i have below code to count number of rows in file1.txt, if the row count is more than one then i have sending an email along with file1.txt attached and fail the process(do nothing if count is <=1),
if I test individually count part works good but when i include the email part its not working,... (4 Replies)
Hi Unix Members,
Can anyone guide me to write one shell script to monitor the attach screen processes and when interrupted mail us. ,
like the processes - /bin/ciserver , /bin/clock , /bin/cserver , /bin/main
Please looking forward you guys help. (6 Replies)
Discussion started by: biswajitnitd
6 Replies
LEARN ABOUT OSX
biff
BIFF(1) BSD General Commands Manual BIFF(1)NAME
biff -- be notified if mail arrives and who it is from
SYNOPSIS
biff [n | y | b]
DESCRIPTION
The biff utility informs the system whether you want to be notified on your terminal when mail arrives.
Affected is the first terminal associated with the standard input, standard output or standard error file descriptor, in that order. Thus,
it is possible to use the redirection facilities of a shell to toggle the notification for other terminals than the one biff runs on.
The following options are available:
n Disable notification.
y Enable header notification.
b Enable bell notification.
When header notification is enabled, the header and first few lines of the message will be printed on your terminal whenever mail arrives. A
``biff y'' command is often included in the file .login or .profile to be executed at each login.
When bell notification is enabled, only two bell characters (ASCII 07) will be printed on your terminal whenever mail arrives.
If no arguments are given, biff displays the present notification status of the terminal to the standard output.
The biff utility operates asynchronously. For synchronous notification use the MAIL variable of sh(1) or the mail variable of csh(1).
DIAGNOSTICS
The biff utility exits with one of the following values:
0 Notification is enabled.
1 Notification is disabled.
>1 An error occurred.
COMPATIBILITY
Previous versions of the biff utility affected the terminal attached to standard error without first trying the standard input or output
devices.
SEE ALSO csh(1), mail(1), sh(1), comsat(8)HISTORY
The biff command appeared in 4.0BSD. It was named after the dog of Heidi Stettner. He died in August 1993, at 15.
BSD July 9, 2002 BSD