After I send a mail thr unix with following command
uuencode tmpFile | mailx -s "sub1" emailid
Yet, I havent received this mail at intended mail client.
In order to find out if the sent mail action resulted in failure,
I checked at
/usr/spool/mail/userid
But there also I couldnt find... (1 Reply)
I hope one of you smart people out there can help me with what seems like a real simple questing but I can't quite figure out.
In a script I am doing a cmp on two files. I am trying to check the exit status with an if statement but can't seem to figure out the syntax. If the exit status is 1 I... (4 Replies)
Hi,
I m new to unix and I need a help in FTp-ing a file.
My script is given below
ftp -n <<END_SCRIPT
open $FTP_HOST
user $FTP_USER $FTP_PASSWD
lcd $TEMPFOLDER
cd $FTP_LOCATION
put $1
bye
END_SCRIPT
exit_status=$?
if ; then
log "successfully FTPed the file"
else... (5 Replies)
I'm developing a script that spawns many background processes that will be executing concurrently and need to check the exit status of each spawned process after it terminates. After starting the background process I can get the pid from $! which I can store in an associative array but how do I... (2 Replies)
Hi All,
I like to check the status of sendmail and take the appropriate action based on success / failure etc.
I have gone through one of the thread where a suggestion is made to use RC for return code
Following is the code:
==================================
#!/usr/bin/bash
export... (0 Replies)
Can I use -ctime/-mtime to verify if a particular directory has been updated or not?
I don't care about number of days. I just want to perform some operations only if the folder is modified (or it's metadata is modified), i.e. some files are added to the directory.
This thread has a more... (1 Reply)
I am relatively new to scripting. I am trying to develop a script that will
1. Source an executable file as an argument to the script that sets up the environment
2. Run a command "stat" that gives the status of 5 Engines running on the system
3. Check the status of the 5 Engines as either... (0 Replies)
Greetings...
I have to construct shell script to check the SFTP status,
Define a global variable (say sftpStatus). Set it to default value "success" when you define it first time outside the script.
check the current SFTP status (say currentStatus - local variable within the script)
if... (16 Replies)
May i please know
1) How to check if FIFO process is down?
2) How to bring FIFO up and running?
we are using redhat Linux OS and bash shell
Thank you. (1 Reply)
Hi,I have a stored procedure to verify no of months since current fiscal.I want a shell script to exit with returtn code when the verification fails,I have shell script below but this doesnt work
sqlplus / << EOF
WHENEVER SQLERROR exit 1
WHENEVER OSERROR exit 2
DECLARE
v_time_period... (2 Replies)
Discussion started by: haadiya
2 Replies
LEARN ABOUT LINUX
biff
BIFF(1) BSD General Commands Manual BIFF(1)NAME
biff -- be notified if mail arrives and who it is from
SYNOPSIS
biff [ny]
DESCRIPTION
Biff informs the system whether you want to be notified when mail arrives during the current terminal session.
Options supported by biff:
n Disables notification.
y Enables notification.
When mail notification is enabled, the header and first few lines of the message will be printed on your screen whenever mail arrives. A
``biff y'' command is often included in the file .login or .profile to be executed at each login.
Biff operates asynchronously via the comsat(8) service. If that service is not enabled, biff will not do anything. In that case, or for syn-
chronous notification, use the MAIL variable of sh(1) or the mail variable of csh(1).
SEE ALSO csh(1), mail(1), sh(1), comsat(8)HISTORY
The biff command appeared in 4.0BSD.
BUGS su(1), and biff don't seem to get on too well. This is probably due to the tty still being owned by the person using su. This can result in
``Permission denied'' messages when attempting to change the biff status of your session.
Please report bugs to netbug@ftp.uk.linux.org including diffs/patches, compiler error logs or as complete a bug report as is possible.
Linux NetKit (0.17-pre-20000412) July 31, 1999 Linux NetKit (0.17-pre-20000412)