From owner-freebsd-questions Wed Aug 12 13:29:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05623 for freebsd-questions-outgoing; Wed, 12 Aug 1998 13:29:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from netra.graphnet.com (netra.graphnet.com [192.206.112.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05581 for ; Wed, 12 Aug 1998 13:29:37 -0700 (PDT) (envelope-from romank@graphnet.com) Received: from graphnet.com (roman.graphnet.com [192.206.112.93]) by netra.graphnet.com (8.8.8/8.8.6) with ESMTP id QAA19278 for ; Wed, 12 Aug 1998 16:29:07 -0400 (EDT) Message-ID: <35D1FCD8.AA09BFEF@graphnet.com> Date: Wed, 12 Aug 1998 16:36:40 -0400 From: Roman Katsnelson Organization: Graphnet, Inc X-Mailer: Mozilla 4.05 [en] (WinNT; U) MIME-Version: 1.0 To: "q's" Subject: Cron daemon question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have a little piece of code sitting in /usr/local/bin/stuff directory... This code involves something like this, for example: cd morestuff #should now be in /usr/local/bin/stuff/morestuff do whatever, then exit When I run it command line, it works. I made a crontab that calls it, and the cron daemon mailed me this: cd: morestuff: No such file or directory The crontab calls the code as /usr/local/bin/stuff/code.sh Should I change the code to make it do absolute paths? I'd rather not, if there were a way around it, but if that's one of the crontab requirements then I guess I will... Any ideas? Thanks, Roman -- Roman Katsnelson UNIX Network Engineer Graphnet, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message