Date: Tue, 28 Apr 1998 18:29:07 +0200 (CEST) From: "Patrick M. Hausen" <hausen@punkt.de> To: freebsd-questions@FreeBSD.ORG Subject: kvm_getprocs() error - what's wrong? Message-ID: <199804281629.SAA14201@hugo10.ka.punkt.de>
next in thread | raw e-mail | index | archive | help
Hi all!
I got a cronjob, that periodically checks if another job is running.
Occasionally I get the following error message:
----- Forwarded message from Cron Daemon -----
>From daemon Tue Apr 28 16:42:01 1998
Date: Tue, 28 Apr 1998 16:42:01 +0200 (CEST)
Message-Id: <199804281442.QAA21293@hugo10.ka.punkt.de>
From: root (Cron Daemon)
To: ascom
Subject: Cron <ascom@hugo10> /usr/local/web-tools/ascom_read_start
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/nonexistent>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=ascom>
X-Cron-Env: <USER=ascom>
ps: kvm_getprocs: Cannot allocate memory
----- End of forwarded message from Cron Daemon -----
The script is as follows:
-------------------- snip ---------------------------
#!/bin/sh
PATH="/bin:/usr/bin:/usr/local/bin"; export PATH
IFS='
'
umask 007
if [ `ps ax | fgrep ascom | fgrep -v fgrep | fgrep -v ascom_read_start | wc -l` -eq 0 ]
then
cd /var/log/ascom
nohup /usr/local/web-tools/ascom_read >>ascom_start.log 2>>ascom_start.err &
fi
-------------------- snip ---------------------------
I'm running FreeBSD 2.2.5-RELEASE on that machine.
Patrick
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804281629.SAA14201>
