Sponsored Content
Top Forums Shell Programming and Scripting Help scripting to start, check, and restart processes Post 302532896 by MacG32 on Wednesday 22nd of June 2011 10:22:50 AM
Old 06-22-2011
Thank you very much neutronscott for your help, this has worked like a charm. Looks like I was way off. Thanks again. Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can I make a program start up automatically after the computer restart/startup?

hi all How can I make a program start up automatically after the computer restart/startup in fedora? something like: ... Establish a shell then run some of command code. Thanks for Help!! (1 Reply)
Discussion started by: munna_dude
1 Replies

2. Shell Programming and Scripting

need help: shell script to restart apache when no. of processes keeps growing

I need a shell script to kill apache and restart it, in case the number of processes keeps growing. The logic is like the below, but I don't know how to get the number and neither the syntax. Could somebody kindly help? if no_of_processes (ps ax ¦ grep httpd) > 200 then killall httpd... (14 Replies)
Discussion started by: _joshua_
14 Replies

3. AIX

How to start/stop/restart NFS on AIX

Hi, Very new to aix How to start/stop/restart NFS on AIX thanks, (2 Replies)
Discussion started by: jredx
2 Replies

4. UNIX for Advanced & Expert Users

Log 'syslog start/stop/restart' messages

How can I tell my syslog.conf to log "syslog start/stop/restart" messages on a Solaris box? (1 Reply)
Discussion started by: SunnyK
1 Replies

5. Shell Programming and Scripting

Start Stop Restart

I'm wondering how I should make a script that can start, stop, and restart another script. What I need to be able to do, is start and stop a perl script from the command line. The easiest way of doing this seems to be to have another script, starting and stopping the other script. I have BASH,... (7 Replies)
Discussion started by: Bakes
7 Replies

6. Shell Programming and Scripting

guarantee to start before restart...

Hi All, is there a way or script that i can check my AIX 5.3 OS will restart before i made restart? is there a script that can check all the startup files are ok before restarting. it is because i was stuck last time when i restart my PC because some startup files were missing:o. (2 Replies)
Discussion started by: malcomex999
2 Replies

7. Solaris

How to start/stop processes

Please anyone tell me In my last interview the HR asks me how to monitor, start,stop & kill the various processes and subprocesses. Please anyone explain me clearly. It's my personal request (3 Replies)
Discussion started by: suneelieg
3 Replies

8. UNIX for Dummies Questions & Answers

Stop/Start vs. Restart

Is there any functional difference between: issuing separate stop/start commands like this; super (handler) (instance) stop super (handler) (instance) start versus issuing a single recycle command like this; super (handler) (instance) restart (3 Replies)
Discussion started by: Newbix
3 Replies

9. Emergency UNIX and Linux Support

Check hung process and restart

Hi all I have networker running on a RHEL 5.7 and over time it hangs. So the solution backup team proposed is to check if the process is hung, to stop and start it. Unfortunately for me, the rc script only allows three commands, start, stop and status (no restart option) so I managed to set... (15 Replies)
Discussion started by: hedkandi
15 Replies

10. Red Hat

Service restart and check if running

Hello, I'l like to create a script that restart a service (/etc/init.d/httpd restart) and also check if after restart the service is actually running. Sometimes it happen that at the first try the service fails to restart. Thanks (2 Replies)
Discussion started by: bazzola
2 Replies
sax2(1) 							Utils for X-Window							   sax2(1)

NAME
xquery - query the X-Server for a various set of information SYNOPSIS
xquery [ options ] DESCRIPTION
xquery is used to obtain/set special information from/to the X-Server like new modeline timings to change size and position of the picture or check for active number of screens... see the options chapter to get an overview of what xquery can do COMMAND LINE OPTIONS
Available command line options are the following: -s Get number of available screens. -a "screen timing" Apply new modeline timing to the X-Server which may change the current geometry of the picture. The option -a takes only one parame- ter which is a string containing the screen and timing information. Every value of the parameter is seperated by a single space, screen define which screen should be used to apply the new timing and timing specify the new timing values. Timing parameters are the following: 1. Horizontal display value 2. Number of horizontal ticks before vsync-start 3. Number of horizontal ticks until vsync-end 4. Total number of horizontal ticks 5. Vertical display value 6. Number of vertical ticks before vsync-start 7. Number of vertical ticks until vsync-end 8. Total number of vertical ticks -m Obtain currently used modelines for all screens -r Obtain currently used resolutions for all screens -y Obtain sync ranges from the active configuration for all screens -n screen Switch to next mode of the given screen, according to Modes configuration parameter which is located within the screen section of the /etc/X11/xorg.conf -p screen Same as option -n except switching to the previous mode. -d display Set basic display to use. Specify only the major display number without any screen information because the number of screens are acounted from xquery itself. -c Get current color depths for all screens. -f Get current used frequencies for all screens. -M Get middle point coordinates of all screens. -S Get screen number of the screen the mouse is currently over. -R "screen text" Show XFT rendered string on a specific screen. NOTE
xquery take care about Xinerama sessions. This means even if you have only one big screen, xquery will know about the single screens build- ing this big screen. Unfortunately there are Xinerama or similar extensions built into binary drivers like nvidia which are not handled correctly via xquery. AUTHORS
Written by Marcus Schafer REPORTING BUGS
Report bugs to <bugzilla.novell.com>. COPYRIGHT
Copyright (C) 2005 SuSE Linux Products GmbH, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 3rd Berkeley Distribution March 15, 2005 sax2(1)
All times are GMT -4. The time now is 10:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy