I don't think this would be a problem to script but ...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers I don't think this would be a problem to script but ...
# 1  
Old 10-18-2006
Question I don't think this would be a problem to script but ...

Smilie

I have not written any code in about 15 years. The company I work for has Unix servers and they utilize KSH. The scriptors say that what I want can only be scripted in PERL which on my server they say they cannot get to work. They also tell me that what I want done cannot be scripted in KSH.

I think someone is blowing smoke up my Kilt!!!

Here is what I have:

A server which has a database on it that has four nodes(0-3). The first node(0) is very small, the others are pretty large. Sometimes the backup hangs on the first node(0) and we have to manually correct.

The server and application folks can't find any reason for the hang so we are having to find that it is hung and stop the backup, application and database and restart them to get it to backup.

I would like:

1. A script that would send an E-mail if Node (0) has not completed the backkup by 18:30.

2. A script that would check the latest log files timestamp (Example of log file name: 6514 Aug 17 00:08 file_bkup.2006-08-16-18-15-00.log)
and determine if the backup completed after midnight. If it has completed afted midnight I would like it to start a polling script.

Backup logs are located in /apps/ief/log/db2

Standard log files are located in /apps/ief/log

Are these folks right or can this be scripted in KSH? If so and it is not too much trouble could you post the scripts? I would really love to prove these "Know it alls" wrong!!

BTW: I do have a test server to verify the scripts operate nominally before I suggest using them on the production server.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

A shell script to run a script which don't get terminated and send a pattern from the output by mail

Hi Guys, I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies

2. Shell Programming and Scripting

In the script I get additional file, which I don't expect do get

I have the following script #!/bin/sh Usage () { echo "Usage: $0 <config_file>" echo "Example: ./sftp_ondemand_daily.sh /export/data/mbsesb/config/ond emand.cfg /export/data/mbsesb/config/filename.lst" exit 1 } if then Usage fi ... (6 Replies)
Discussion started by: digioleg54
6 Replies

3. UNIX for Dummies Questions & Answers

Revision of script from don

Don, I revised script but when I ran it I did not receive any log. I am not sure what you mean to run it in code tags. I am using a putty session and ssh but I did not get a trace log? Barb ---------- Post updated at 01:33 PM ---------- Previous update was at 01:27 PM... (2 Replies)
Discussion started by: bcarosi
2 Replies

4. Shell Programming and Scripting

Why don't kill the script after 5s?

# watchdog process mainpid=$$ (sleep 5; kill $mainpid) & watchdogpid=$! sleep 100 kill $watchdogpid The sleep isn't be killed, I want the script to be killed ---------- Post updated at 03:03 AM ---------- Previous update was at 12:04 AM ---------- I just modify the format of my... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

5. UNIX for Dummies Questions & Answers

HELP Script don't work selecting lowest value!!!

Hy again guys, Last week i resolve a question here but now i need your help again :rolleyes: I have about 3000 files that i need to choose based on the lowest value, so i make temp files like this: The files can have lines from 1-10 but only 2 columns, the point is to grep the name os the... (2 Replies)
Discussion started by: MetaBolic0
2 Replies

6. Solaris

I don`t understand how It work (about startup script)?

Hi all. The startup script in /usr/local/bin. After user login the script run an application. Iwould in the same way run the another application. How to make It similar? Where I must to look? Regards. (3 Replies)
Discussion started by: wolfgang
3 Replies

7. UNIX for Advanced & Expert Users

don't understand the unix script

if {"$my_ext_type" = MAIN]; then cd $v_sc_dir Filex.SH $v_so_dir\/$v_fr_file Can somebody tell me what does this suggest. I am pretty new to unix and I am getting confused. What i understood from here is If we have a file extension name as MAIN which we have then we change the directory to... (1 Reply)
Discussion started by: pochaman
1 Replies

8. Shell Programming and Scripting

script don't stop

Hello everybody! I am new to this and I am trying to change a script in an open source program that plots some offset vectors and then calls a postscript viewer. I have commented away the call for the postscript viewer but somehow the script doesn't return to the shell prompt. I cant figure out... (3 Replies)
Discussion started by: larne
3 Replies

9. Shell Programming and Scripting

don't know how to implentment as unix sh script

for each file if file name like xx* for each line in a file if substring(3,6) found in another txt file output to file-a( filename = orginal file + _a) else output to file-b( filename = orginal file + _a) end Next Line (4 Replies)
Discussion started by: ttivanwan@yahoo
4 Replies
Login or Register to Ask a Question