RESTART(1p) User Contributed Perl Documentation RESTART(1p)NAME
restart -- call bin/interchange "-"r with possible su
VERSION
1.0
SYNOPSIS
restart [-f]
DESCRIPTION
The "restart" script just tries to execute "interchange" "-r" with the proper permissions. If the user is "root", a prompt will be made to
see if you want to start as the guessed user ID. (This is the contents of the $Global::VendRoot/_uid file.)
OPTIONS
The "-f" flag prevents the prompt for superuser and forces quiet mode; this is how you might call Interchange from a system startup script.
SEE ALSO interchange(1), http://www.icdevgroup.org/
AUTHOR
Mike Heins
perl v5.14.2 2012-01-23 RESTART(1p)
FYI, the GCC compiler is available for OS X. This means you can easily compile all the super GCC opensource. You can see the GCC and other
projects <A HREF=http://www.opensource.apple.com//projects/darwin/1.2/projects.html>HERE</A>.<P>
Also, I looked into how OS X handles OS 9 applications. ... (12 Replies)
i'm trying to write a script that will check my os x box for uptime and autorestart gracefully if the uptime is greater than a certain number of days.
thus far i have this:
if uptime | cut -d ',' -f 1 | cut -d ' ' -f 4 -gt 10 ; then
echo "yes"
fi
this doesn't work and i've tried... (11 Replies)
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)
Hi,
I have a script which has a for loop in it. In that for loop are names of files that are going to be processed. For example,
for file in file1 file2 file3 file4
do
(something)
done
Let's say that this script gets executed and it fails at 'file2'. Is there a way that I can actually... (10 Replies)
Hi all.
I do have a script "startApp.sh" (app result is a file /opt/extract/appextract.txt)
I have no problems with stopping app
var1=`ps -ef | grep -v grep | grep MyApp | awk '{print $2}'`
kill -9 $var1
What I want to achieve is:
I start app, app is doing some extraction, after... (11 Replies)
I've got critical patching this weekend on 6 HP UX machines, back to back and the customer has requested to shutdown, and halt the machines and to bring it up at a later period. The thing is the servers are located offshore and we are just the support team. I have a special login thru a console... (16 Replies)
Hi to all.
My first message here, but i following you via twitter feed from many time...
The question:
I need to delay 5-10 seconds the shutdown command executed when the user click on the power off/reboot in their session or at login screen.
I need that because i have in the background a... (18 Replies)
Here it goes from my unexperienced point of view. I am using CentOS 5.6. I have a Java based server that needs to be running 24/7/365. To begin from the machine the server is on rebooting; I SSH in to a shell, cd to the server dir, screen -S server1, and execute ./exec (listed below) in the screen.... (12 Replies)
Hello,
I'd like to set a cron job that runs a shell script every 30 minutes or so to restart a java based service if the memory gets above 80%. Any advice on how to do this?
Thanks in advance!
- Ryan (19 Replies)
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)
hello all,
i have the below script that we used to backup our DB using oracle's utility called RMAN. This has been working fine, but the issue is when the backup fails and we re-start it, it backups the whole thing again. Example.
lets say i have 5 database on my system(db1,db2,db3,db4,db5)... (11 Replies)
Howdy,
I am nearly tearing my hair out as Cron isn't running a script that should work.
I am interning for a company. Their rsyslog keeps track of traffic that gets past a firewall. It creates two files called pix.log and pix2.log. Every time something happens with the firewall, it adds to... (11 Replies)
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
#!/bin/bash
#This shell finds the pid of the hawkagent and kills and restarts to put the rulebase into effect
output=`ps aux|grep hawkagent`
#The set -- below helps to parse the above ps output into words and $2 gives the 2nd word which is pid
set -- $output
pid=$2
#Checks if pid of hawkagent... (12 Replies)