From owner-freebsd-stable@freebsd.org Wed Apr 10 20:13:38 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B3D3A156B6E1 for ; Wed, 10 Apr 2019 20:13:38 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD96088764 for ; Wed, 10 Apr 2019 20:13:37 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: by mail-vs1-xe2c.google.com with SMTP id i207so2125967vsd.10 for ; Wed, 10 Apr 2019 13:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance; bh=By0iu3KOrBEDZeLBPTUjMW2it5l1sPvyaq9EwS6xxio=; b=bzvmf3GEegvij0RNmTqzypKgP7YfLiKvHk1MriupGW3M5rPBimLxkgve1rNKD+i+T4 tCdWfVQ3yWDwlTMb06hxXCEMBEANafwOyimXvCK76UBkCOAt7gxaMWQr2+FFk+dKUYwm /u1NdfnLP1oh+nAOTqHI9d5dwBszg2Usxsdb/JI+yc8/1KfqJ7xRbzuXngf7pX/jdGel WstHrfsUFSVo45IjYy7wnl+IU6nzKBPcu1nBvukMzrVBt25mSn/4aZi88Vdc5oLIrzlS 9f+etityifgXe3JpNYMP4naDOUINQ0+6RXJh5tsENuGtInyy1SfYdFy9meSKQIYfYkph 7Jgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=By0iu3KOrBEDZeLBPTUjMW2it5l1sPvyaq9EwS6xxio=; b=HogNAsUpRZFDhX1OfKzXMeOvCJAQY+QIVtqmhn7S5StXHtd5+df06iTnuwh7UcYfM+ tJxbZqelGoF9DGOgZpPSUn2GNdbDhwFlukfvay7yWZKjkESwQlFDrZD4ajI8D5vlrXyv sWcsme7yZkGAvf1ANVtvigi/SrOVPRtpI7Li8hZVpjeYa0Q6OQ3hYLwSDYdWo2OXEKKQ EFUUzHOIvyTF+Ru83vwVqUKeSm+YSNz2DZZlIbJSXt9nnFpE6orqBW8QULiX5ymCEiUm MspVhnlB30ZWKrb1r06bT79ouna50REkZxBKUwD9LJshflTMNjcpUM4C4j9q0NeymdDn Y5hA== X-Gm-Message-State: APjAAAWb6QpS5Ic5GZmBRLRAPQQ1/B/NqcVffXZGu4b9Htff91VX8xSe r2vPXUDYC77UFUSGTP2c3mJnx0eP X-Google-Smtp-Source: APXvYqyiNcmDj+RrPaVQpl1Dv5u5XBKnFGVdtcmdxvJqAlDhHWq9KtkZsYpg8BkTtJ+SnFyuqlZGfw== X-Received: by 2002:a67:fe4f:: with SMTP id m15mr20635962vsr.202.1554927215863; Wed, 10 Apr 2019 13:13:35 -0700 (PDT) Received: from ?IPv6:::ffff:192.10.1.119? (git.mayberryinv.com. [63.143.111.202]) by smtp.gmail.com with ESMTPSA id d193sm5674467vkd.41.2019.04.10.13.13.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 13:13:35 -0700 (PDT) Message-ID: <5cae4e6f.1c69fb81.95785.62bf@mx.google.com> MIME-Version: 1.0 To: "freebsd-stable@freebsd.org" From: Software Info Subject: Crontab Question Date: Wed, 10 Apr 2019 15:13:34 -0500 Importance: normal X-Priority: 3 X-Rspamd-Queue-Id: CD96088764 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bzvmf3GE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of softwareinfojam@gmail.com designates 2607:f8b0:4864:20::e2c as permitted sender) smtp.mailfrom=softwareinfojam@gmail.com X-Spamd-Result: default: False [-5.97 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; HAS_X_PRIO_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.95)[-0.952,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-3.00)[ip: (-9.82), ipnet: 2607:f8b0::/32(-2.95), asn: 15169(-2.19), country: US(-0.06)]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2019 20:13:39 -0000 Hi All I am trying to schedule cron to run a script. The script is in my home dire= ctory and so I added my home directory to the path file in /etc/crontab bel= ow. PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin:/= home:/home/me This is the crontab entry for the scheduled task below. 49 14 * * 1-5 root myscript.sh myscript.sh grabs a file from another directory if it is there. If not, it = says =E2=80=9Cfile not uploaded=E2=80=9D. If the file is there, it copies i= t to my home directory, strips email addresses out of it and uses mailx to = send emai to those users. I keep getting the error that a number of files i= n my home directory are missing but they are not.=20 Please see errors below mv: rename *.csv to listing.csv: No such file or directory grep: listing.csv: No such file or directory /home/me/ipo-script.sh: cannot open body.txt: No such file or directory mv: rename /home/me/listing.txt to /home/me/listing.txt-10-04-19-1435: No s= uch file or directory mv: rename /home/me/listing.csv to /home/me/listing.csv-10-04-19-1435: No s= uch file or directory mv: rename /home/me/listing.txt-10-04-19-1435 to /home/me/IPO-Backup-Files/= listing.txt-10-04-19-1435: No such file or directory mv: rename /home/me/listing.csv-10-04-19-1435 to /home/me/IPO-Backup-Files/= listing.csv-10-04-19-1435: No such file or directory Because I added my home directory to the path in crontab, I am at a loss to= explain why this is still happening. Anyone have any ideas? Would really a= ppreciate some help. Kind Regards SI Sent from Mail for Windows 10