Results 1 to 1 of 1
I started to put this in the misc section, but since we run Suse I'm dropping it here.
Anyway, I want to append the backup script with the tar script.
...
- 06-26-2007 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 139
Question on scripting...
I started to put this in the misc section, but since we run Suse I'm dropping it here.
Anyway, I want to append the backup script with the tar script.
But I want to make sure that db2 has stopped.
So I have a message that db2 is stopped, but I don't know where that message(besides stdout) is stored. I've looked through different logs but didn't see the message.
Am I going to redirect the output to a file and then grep the file for the message.
If so what would the code look like? I know I'll have to redirect(>)
I'm thinking.. make a new command to issue with the 1st command inside the new command would be the old command with a redirect to a file
thanks
Mace
As I sit here and think about this there is really another problem.
It's going to take several minutes(maybe up tp 20-30) for db2 to shutdown,
so I need to wait(loop??) throught this file or give an inital wait then check the file. But what if db2 fails to shutdown(which it does sometimes) I'll never get the message. Is there someway to check db2 itself?
Maybe this belongs in the scripts section.
I think I'll copy and paste there
thanks
Mace


Reply With Quote