Re: Crontab Question

2019-04-12 Thread Willem Offermans
Mackerras > Sent: Thursday, April 11, 2019 11:53 AM > To: Software Info > Cc: Walter Cramer; freebsd-stable@freebsd.org; Jonathan Chen > Subject: Re: Crontab Question > > In your script put a few commands outputting to a check file > > pwd > /tmp/checkfile > > A

RE: Crontab Question

2019-04-11 Thread Software Info
@freebsd.org; Jonathan Chen Subject: Re: Crontab Question In your script put a few commands outputting to a check file pwd > /tmp/checkfile Add a few more like ENV >> /tmp/checkfile Just to make sure it really is in the directory you expect with the environment you expect. If you want it

Re: Crontab Question

2019-04-11 Thread Richard Mackerras
dows 10 > > From: Walter Cramer > Sent: Wednesday, April 10, 2019 4:40 PM > To: Software Info > Cc: Jonathan Chen; freebsd-stable@freebsd.org > Subject: RE: Crontab Question > >> On Wed, 10 Apr 2019, Software Info wrote: >> >> OK. So although the script is located

RE: Crontab Question

2019-04-11 Thread Software Info
Well thanks for all the input. I just have to tp keep working at it. Again, much appreciated. Regards SI Sent from Mail for Windows 10 From: Walter Cramer Sent: Wednesday, April 10, 2019 4:40 PM To: Software Info Cc: Jonathan Chen; freebsd-stable@freebsd.org Subject: RE: Crontab Question

Re: Crontab Question

2019-04-10 Thread David Wolfskill
On Wed, Apr 10, 2019 at 04:34:49PM -0500, Software Info wrote: > I see. I had however copied the output of env to the etc/crontab PATH line. > Wouldn’t that care for an environment issue though? > > > Regards > SI > The execution search path has no (direct) bearing on the current working

Re: Crontab Question

2019-04-10 Thread Doug McIntyre
for Windows 10 > > From: Jonathan Chen > Sent: Wednesday, April 10, 2019 4:23 PM > To: Software Info > Cc: freebsd-stable@freebsd.org > Subject: Re: Crontab Question > > On Thu, 11 Apr 2019 at 09:14, Software Info wrote: > > > > OK. So although the s

Re: Crontab Question

2019-04-10 Thread Jonathan Chen
On Thu, 11 Apr 2019 at 09:34, Software Info wrote: > > I see. I had however copied the output of env to the etc/crontab PATH line. > Wouldn’t that care for an environment issue though? When I say "environment", I mean it in the generic sense; including working-directory. However, best practise

RE: Crontab Question

2019-04-10 Thread Walter Cramer
On Wed, 10 Apr 2019, Software Info wrote: OK. So although the script is located in my home directory, it doesn???t start there? Sorry but I don???t quite understand. Could you explain a little further please? Both 'cp' and 'ls' are located in /bin. But if I run the 'ls' command in /root,

RE: Crontab Question

2019-04-10 Thread Software Info
: Crontab Question On Thu, 11 Apr 2019 at 09:14, Software Info wrote: > > OK. So although the script is located in my home directory, it doesn’t start > there? Correct. You cannot make any assumptions about the environment. -- Jonathan Chen __

Re: Crontab Question

2019-04-10 Thread Jonathan Chen
On Thu, 11 Apr 2019 at 09:14, Software Info wrote: > > OK. So although the script is located in my home directory, it doesn’t start > there? Correct. You cannot make any assumptions about the environment. -- Jonathan Chen ___

RE: Crontab Question

2019-04-10 Thread Software Info
: freebsd-stable@freebsd.org Subject: Re: Crontab Question On Thu, 11 Apr 2019 at 08:18, Software Info wrote: > > Hi All > I am trying to schedule cron to run a script. The script is in my home > directory and so I added my home directory to the path file in /etc/crontab > below. > PA

Re: Crontab Question

2019-04-10 Thread Jonathan Chen
On Thu, 11 Apr 2019 at 08:18, Software Info wrote: > > Hi All > I am trying to schedule cron to run a script. The script is in my home > directory and so I added my home directory to the path file in /etc/crontab > below. >