LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-15-2004, 07:46 AM   #16
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46

-- you go, jpelletier! May I ask how you learned to write such a script? I'm slogging through the Advanced Bash-Scripting Guide, but any additional resources would be gratefully received.

Funny thing (to me) is, once you can recognize a (relatively) simple BASH for loop like this one (I've got far enough with the ABS that I can see that it's "simple" in terms of scripting operations, even if it's not simple for me to attempt to create), you start noticing it all over the place; I just realized that (unsurprisingly), Neverwinter Nights uses a variant of this scriptlet in their fixinstall script to change the Windows-installed data files and folder names from uppercase to lower case.

I think the thing that's got me a bit stumped atm is that "check to see if .... is running"-- this is a function that I've seen before (usually in scripts to promote interoperability of Mozilla Firefox and Thunderbird, but there it seems to be done differently).

Yes it's OT, but 1) your problem looks to be solved; and 2) I've got you here now, and I always try to pick people's brains when I've got them in front of me so, I was wondering if there is some "standard" way to perform such a check, and where I might find documentation to learn more about how to perform such a check in a script.

Thanks for any info.
 
Old 08-15-2004, 08:52 AM   #17
jpelletier
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
Bah! It's not complicated wizardry, I just took the instructions from a How-to somewhere and I made a script with it.

For checking process running, you can check for daemons like in this example:
Code:
kill -HUP `cat /var/run/inetd.pid`
For other programs, I don't really know if there is a standard way but it would be something like:
Code:
ps aux | grep mozilla
with some tests added.
I have no scripts like that at hand for now.

Hope this will help!

Last edited by jpelletier; 08-15-2004 at 08:53 AM.
 
  


Reply



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
Could not init font path element unix/:7100, removing from list! jeffreybluml Fedora 18 10-12-2011 08:06 AM
"Could not init font path element""Unix /: 7100 removing from list/ zameer_india Linux - Networking 7 07-03-2006 06:11 AM
Dropline 2.8.2 causes font path element error in X Windows jtp51 Slackware 1 12-30-2004 02:05 PM
Could not init font path element?? nu_us3r Linux - Newbie 4 08-25-2004 07:01 PM
Could not init font path element. Could not find default font "fixed" SidA Red Hat 0 06-19-2004 08:42 PM

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

All times are GMT -5. The time now is 03: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