LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-29-2005, 03:50 PM   #1
steve_f60
Member
 
Registered: Jul 2004
Posts: 43

Rep: Reputation: 15
Angry Linux Scripting Issue Kicking my Butt !!!


Hello,

I have remapped Ctrl Alt BackSpace to call a debug script I have written. ( see below)

I have started the script off with an xmessage screen to let the user know that something is happening as the dump & subsequent tar up of the files takes a few minutes & I don't want the user to shut off the power during the dump.

Problem is, I have to physically hit the OK in the xmessage to move to the next part of the script. A -timeout value kicks off the next command of the script but I now have nothing showing the user that something is happening on the screen.

What I want to happen is to keep the " Please Wait " message on the screen while everything else is happening with no user intervention. The final restart of X will clear out everything & get me back up.

Any ideas how I can keep a user message on the screen while I am doing the tar & the dump?
Thanks,

Steve

################################################
umask 0000

varDate=`date +%Y-%m-%d-%H%M`

xmessage -center "Please Wait, taking a dump"

if [ -e /tmp/core.* ]
then
tar -czf /tmp/coredump/dump.${varDate}.tar.gz /tmp/core.* /tmp/ gdbtrace_*.txt /tmp/shlib_*

rm /tmp/core.* /tmp/gdbtrace_*.txt /tmp/shlib_*
fi


/usr/local/bin/gdbtrace.sh -ac `ps -emf | grep "java" | head -n 1 | awk '{print $2}'` -e /opt/IBMJava2-141/jre/bin/java

if [ -e /tmp/core.* ]
then
tar -czf /tmp/coredump/dump.${varDate}.tar.gz /tmp/core.* /tmp/gdbtrace_*.txt /tmp/shlib_*
rm /tmp/core.* /tmp/gdbtrace_*.txt /tmp/shlib_*
 
Old 04-29-2005, 05:00 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
I take it that this is written in Bash and xmessage is a program?

In that case, you can do:
Code:
xmessage -center "Please Wait, taking a dump" &
to run xmessage in the background.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux saved my butt again. /bin/bash LinuxQuestions.org Member Success Stories 2 10-01-2005 01:20 AM
Rdesktop kicks butt! Whitehat LinuxQuestions.org Member Success Stories 16 12-11-2004 07:30 PM
Samba Is Kicking My Butt!! pentax9380 Linux - Networking 7 09-28-2004 06:57 PM
Scripting issue. dolvmin Linux - Software 8 09-18-2003 11:28 PM
Why is Linux with 64Mb RAM so butt slow? Noerr Linux - Distributions 60 07-12-2002 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration