Sponsored Content
Full Discussion: Mail from unix box
Top Forums Shell Programming and Scripting Mail from unix box Post 302084920 by pmsuper on Monday 14th of August 2006 07:54:48 AM
Old 08-14-2006
Mail from unix box

I am executing the below script from unix box

If row count is zero the mail should not set to the client

The problem is, if row count is zero the mail is going to the client
(what is wrong in the script)


SET HEAD OFF FEED OFF PAGES 0
Select count(*) as change_count from DBG_INITIATIVES_CHANGE;"

change_count=${output}

echo $change_count

if [ ${change_count} > 0 ]; then

mailx -s aaa@yahoo.com

EOF

exit 1

fi

exit 0
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies

2. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

3. UNIX for Dummies Questions & Answers

Receive e-mail on unix box

Hi, I am not sure if it is a good question or not. Is there a unix utility which can be configured with exchange server and then receive e-mails? Thanks! (4 Replies)
Discussion started by: DejaVu
4 Replies

4. Shell Programming and Scripting

how to compare all files in one unix box has been to copied to another unix box

Hi our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate. (9 Replies)
Discussion started by: sravanreddym
9 Replies

5. UNIX for Dummies Questions & Answers

unix script to check if rsh to box and send status mail

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

6. Shell Programming and Scripting

Unix Mail Box

Hi Friends, I'm new to Unix. I have a fbackup step like /bin/nice /etc/fbackup -f /dev/rmt/0m -i / -I /opt/monitrol/tmp/Index.full 2 > /var/adm/error.log the errors for this step is redirected to a log file. How can I make to trigger mails when error occurs. Please suggest. Thanks in... (4 Replies)
Discussion started by: avik.nandi
4 Replies

7. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

8. Solaris

Mail system Configuration issue on UNIX box

Hi, I wanted to configure a mail system on my UNIX box. For that I read a document Sun Internet Mail Server 3.5 Advanced Installation Guide: Contents which is actually quite useful document but I am not sure from where can I bring patch? Is this patch will come in any CD form which I need to run... (1 Reply)
Discussion started by: Dhruvak
1 Replies

9. Shell Programming and Scripting

Clean up UNIX mail box using script

Hi, I would like to clean up by unix mail mail box thru some script command.. I do know how to delete from mail box ... e.g. $ mail ? d* ? quit But I need to clean up thru some command which I can use in my script before sending any email.. Thanks in advance! (1 Reply)
Discussion started by: pareshkp
1 Replies

10. Shell Programming and Scripting

UNIX mail box

Currrently I am not able to send/receive any emails to email id. I believe my mail box is full in server. could you please let me kknow to clear the emails in the unix server. (2 Replies)
Discussion started by: ramkumar15
2 Replies
LUCKYBACKUP(8)						      System Manager's Manual						    LUCKYBACKUP(8)

NAME
luckybackup - a powerful, fast and reliable backup & sync tool SYNOPSIS
luckybackup [OPTIONS]... [FILE]... DESCRIPTION
luckybackup is an application that backs-up and/or synchronizes any directories with the power of rsync OPTIONS
--help displays this help message --version displays the current version of the application --skip-critical does not execute tasks that appear with a 'CRITICAL' warning message --dry-run executes luckybackup in dry-run (simulation) mode --silent executes luckybackup in silent mode (just tray notification icon shown) -c console mode. Use this, if there is no graphical envrironment available --no-questions skips confirmation questions asked to user. Implies -c (console mode) [FILE] is the filename of the already created profile that is going to be executed examples 1. Execute luckybackup gui : $ luckybackup 2. Execute luckybackup in silent mode for profile '~/.luckyBackup/profiles/BackupHome.profile' : $ luckybackup --silent ~/.luckyBackup/profiles/BackupHome.profile 3. Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile' : $ luckybackup -c BackupHome.profile 4. Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile' Do not ask any questions and skip all operations that appear CRITICAL after the checks : $ luckybackup --skip-critical --no-questions ~/.luckyBackup/profiles/BackupHome.profile SEE ALSO
For a complete documentation, please have a look at the application manual via the gui main window help menu. AUTHOR
luckybackup was written by <Loukas Avgeriou>. This manual page was written by luckyb <luckyb69@sourceforge.net>, for the Debian project (but may be used by others). 2011-01-12 LUCKYBACKUP(8)
All times are GMT -4. The time now is 03:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy