Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grepping for the restore process

Status
Not open for further replies.

jalge2

Technical User
Feb 5, 2003
105
0
0
US
I wrote a script that restores all files on each volume group and appends it to a file. This way you can view what was restored on last night's tape. We ran this over and over and discovered that the restore process wasn't stopping, so there were hundreds of process hanging out there.

I'm trying to error proof the script but I don't know what to grep for to see if the restore process is still hanging out there. Can someone help?

Here is the line of code that I used to restore and append all into the file:

restore -Tpqvf /dev/rmt0.1 > /dso/mis/scripts/vfybkup/rootvglog 2>&1

Jason Alge
Jason.M.Alge@lowes.com

'There are three kinds of people: Those who can count and those who can't'
 
I hope I am not missing something, but try the following to see if the restore process is still running:

ps -ef | grep "restore -Tpqvf"

I hope that helps.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top