Tag Archives: nohup

Get notified by email using mailx

Very simple script to get notified by email on job completion. Mostly I use this script for background jobs ran through ‘nohup’. test.sh #!/bin/ksh export FILE=/home/oracle/test.log sqlplus “/as sysdba” @test.sql mailx -s “test” raheel@company.com < $FILE test.sql spool test.log select name from v$database; spool … Continue reading

Posted in Linux, Shell Scripting | Tagged , , , | Leave a comment