home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
d
/
d-linux.zip
/
dm-dist
/
opstart
< prev
next >
Wrap
Text File
|
1991-03-01
|
462b
|
27 lines
#!/bin/csh
# Rekursivt at-job. Starter 'nightrun' og bestiller sig selv til n{ste dag
# remove opstartfailed
if (-e opstartfailed) then
rm opstartfailed
endif
# put new job in queue
if `atq | awk '/opstart/ {print $1}' | head -1` == "" then
at -c 1705 opstart
endif
# get process id
set process = `ps -gax | awk '/dmserver/ && ! /awk/ {print $1}' | head -1`
if $process == "" then
nightrun &
else
echo "process exists" > opstartfailed
endif