Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Help...
@ 1992-10-25  5:00 JENNIFER KAYE SCOTT
  1992-10-26 18:57 ` Help Marcus J. "Will do TCP/IP for clues" Ranum
  0 siblings, 1 reply; 5+ messages in thread
From: JENNIFER KAYE SCOTT @ 1992-10-25  5:00 UTC (permalink / raw)



I am not sure if this is the right news group for this or not, but
I need some help with shell programming on a DECstation...

I need to run a shell script that will check to see if a process is
running, and if it is not, then make run it.

Can anyone help me, or refer me to someone that does?

Thanks

-- 
-------------------------------------------------------------------------------
Watchboy--Protector of time everywhere :-) (@Hall of Fame and MudDog LPMuds)
Flames and other stuff may be sent to:
	jkscott@eos.ncsu.edu
Surgeon General's Warning: Reading of this sig could be hazardous
                           to your health!
-------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help...
  1992-10-25  5:00 Help JENNIFER KAYE SCOTT
@ 1992-10-26 18:57 ` Marcus J. "Will do TCP/IP for clues" Ranum
  0 siblings, 0 replies; 5+ messages in thread
From: Marcus J. "Will do TCP/IP for clues" Ranum @ 1992-10-26 18:57 UTC (permalink / raw)


>I need to run a shell script that will check to see if a process is
>running, and if it is not, then make run it.

	This is usually done by having the process you want to check write
its process-id to a file someplace. The second process just sits in a loop
and wakes up every minute (or whatever) and does a "kill 0" on the process
you want to check. You then test the exit value of kill. Easy.

#!/bin/sh
while true; do
	sleep 60
	kill -0 `cat /some/dir/process.pid`
	if [ $? -ne 0 ]; then
		echo "process died"
		/start/some/process
	fi
done

mjr.

PS - (another option is to not run those LPMuds that crash alla time, if
that was your question. ;) )
-- 
	You can't fix stupidity with software.
						-notebooks of a heretic


^ permalink raw reply	[flat|nested] 5+ messages in thread

* help
@ 1997-12-31  5:00 K9SigTau
  0 siblings, 0 replies; 5+ messages in thread
From: K9SigTau @ 1997-12-31  5:00 UTC (permalink / raw)



i need help upgrading a starion 800 cpu 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Help
@ 2000-08-11  4:00 poyaes
  2000-08-15  4:00 ` Help SkiDad
  0 siblings, 1 reply; 5+ messages in thread
From: poyaes @ 2000-08-11  4:00 UTC (permalink / raw)


Hi,

I am using Digita unix v.4.0.f on an AlfaServer 800 with 4x4GB disks
and now I will upgrade these disks with 4x9GB disks.

Can I first backup the system and after replacing the disks install the
OS and restore the deta on the new disks?
Or shall I do other thing?

I thank you for your help.




Sent via Deja.com http://www.deja.com/
Before you buy.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help
  2000-08-11  4:00 Help poyaes
@ 2000-08-15  4:00 ` SkiDad
  0 siblings, 0 replies; 5+ messages in thread
From: SkiDad @ 2000-08-15  4:00 UTC (permalink / raw)


There seems to be no reason why you should not do this for data disks.
You ought to be able to mount your new disks along side your old disks
and copy from the old disk to the new disk. Then unmount the old disk
and mount the new one it its place.

The disk on which this will be a problem will be the system disk: the
disk on which the bootable Unix is found. Not being having done much
with generating Tru64 Kernels and setting up boot partitions I am not
sure a direct copy of the file system would work on the system disk. .

Hope this helps.
SkiDad


In article <8n1vkc$bgj$1@nnrp1.deja.com>,
  poyaes@yahoo.com wrote:
> Hi,
>
> I am using Digita unix v.4.0.f on an AlfaServer 800 with 4x4GB disks
> and now I will upgrade these disks with 4x9GB disks.
>
> Can I first backup the system and after replacing the disks install
the
> OS and restore the deta on the new disks?
> Or shall I do other thing?
>
> I thank you for your help.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

--
--- Daddy, why are we hiding?
--- Because, son, we are Emacs users and they use vi!


Sent via Deja.com http://www.deja.com/
Before you buy.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-08-15  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-10-25  5:00 Help JENNIFER KAYE SCOTT
1992-10-26 18:57 ` Help Marcus J. "Will do TCP/IP for clues" Ranum
  -- strict thread matches above, loose matches on Subject: below --
1997-12-31  5:00 help K9SigTau
2000-08-11  4:00 Help poyaes
2000-08-15  4:00 ` Help SkiDad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox