Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 1999 01:37:21 -0700
From:      Jamie Norwood <mistwolf@ethereal.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Weird crontab/script problem
Message-ID:  <19990407013721.A15530@ethereal.net>

next in thread | raw e-mail | index | archive | help


OK, I have a script I have written to send out some pings and record the 
results. When I run it by hand, it works fine. When I put it in a crontab, it
never does anything.

The script is simple and is as follows:

---
#/usr/local/bin/tcsh
 
ping -c 100 208.166.54.1 > /tmp/ping.`date +%m.%d.%H.%M`
---

And the crontab:

---

*/5 * * * *     /home/mistwolf/bin/pinggate

---

Oddly, the following cron entry works fine:

---

*/5 * * * *     touch /home/mistwolf/.crontouch

---

Why?

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:+ a--(?) C++++ UB++++ P+ L--(++) E-- W++(--) N++ O?
K w(---) O?>+ M?>+ V PS+ PE+ Y+ PGP->++ t+(*) 5+++ X++ R++ tv+
b+ DI++++ D++ G e>+ h--- r+++ y+++**
------END GEEK CODE BLOCK------



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?19990407013721.A15530>