Search Results

Search: Posts Made By: kjaisan
84,745
Posted By kjaisan
return DB2 SQLCODE
Hello All,

I have 2 shell scripts.
script1.sh
script2.sh

script1.sh call script2.sh

script2 will connect to DB2 database and execute a insert statement. I am capturing the return value of...
51,885
Posted By kjaisan
Thanks Ygor, that helped.
Thanks Ygor, that helped.
51,885
Posted By kjaisan
how to cut a string from a variable
Hello All,

I have a string type variable called "FULLSTR".

This variable has a value of "path=/type/source/logs".

I need to cut the characters after the character "=" to end of the string....
54,247
Posted By kjaisan
Thanks for the help Perderabo.
Thanks for the help Perderabo.
54,247
Posted By kjaisan
How to get it's own file name within the same shell script?
Hello all,

This may be a silly question, but, let me ask... I searched the knowledge base, but couldn't get any help...

My script creates a log file. I need to name log file as whatever the...
5,164
Posted By kjaisan
Perderabo, Thanks much for you help. It's working...
Perderabo, Thanks much for you help. It's working great now.
5,164
Posted By kjaisan
Perderabo, I did tried mailx first. $...
Perderabo,

I did tried mailx first.

$ mailx -s"Notification" name@name.com < /home/backup_log.log

But, the receiptents are receiving e-mail like this......
5,164
Posted By kjaisan
Also, I am trying to send an e-mail notification...
Also, I am trying to send an e-mail notification at the end of this script and I am using

$ /usr/lib/sendmail -v toname@name.com < /home/lognotes.txt

How do I specify the subject field?
...
5,164
Posted By kjaisan
Thanks Perderabo. It worked.
Thanks Perderabo. It worked.
5,164
Posted By kjaisan
But, how do I count 10 backup files? and if it...
But, how do I count 10 backup files? and if it exceeds 10 then your command will work to delete the oldest file.

Thanks
5,164
Posted By kjaisan
Limit backup files
Hello all,

I am building a shell script. Every morning my shell script will trigger an external system backup script and the backup file (File Name format: "20030929backup.bkp" (i.e)current...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 06:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy