Re: Cron Job will not run.

2005-11-04 Thread Giorgos Keramidas
On 2005-11-04 08:47, Brandon Hinesley <[EMAIL PROTECTED]> wrote: > > > for (( i = $numbkups ; i >= 2 ; i-- )) > > > do > > > let from=i-1 > > > mv -fv $dbkups/$from $dbkups/$i > > > done > > > > Hmmm, what shell is this supposed to run in? > > It doesn't look like /bin/sh syntax to me. > >

RE: Cron Job will not run.

2005-11-04 Thread Brandon Hinesley
You're right... it's for /usr/local/bin/bash. Obviously I had a lot more problems than I was aware of. Its working now; thanks, I appreciate everyone's help. > for (( i = $numbkups ; i >= 2 ; i-- )) > do > let from=i-1 > mv -fv $dbkups/$from $dbkups/$i > done > Hmmm, what shell is this s

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
On 2005-11-03 16:33, Brandon Hinesley <[EMAIL PROTECTED]> wrote: > > Okay, the problem seems to be with a certain part of my script. > Like I said, it works fine when I start it manually (./) > > I set up a few "checkpoints" if you will, and I determined that > it's this loop that cron has a proble

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
Okay, the problem seems to be with a certain part of my script. Like I said, it works fine when I start it manually (./) I set up a few "checkpoints" if you will, and I determined that it's this loop that cron has a problem with: for (( i = $numbkups ; i >= 2 ; i-- )) do let from=i-1 mv

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
On 2005-11-03 13:51, Brandon Hinesley <[EMAIL PROTECTED]> wrote: > Yes, it is. > -rwxr-x--- 1 root wheel 1827 Nov 3 12:43 bkup-daily > > >>I don't have to export /usr/local/Backup/scripts, right? > > >Hmmm, no, but is the script executable? That's odd. You'll have to schedule this script to r

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
Yes, it is. -rwxr-x--- 1 root wheel 1827 Nov 3 12:43 bkup-daily >>I don't have to export /usr/local/Backup/scripts, right? >Hmmm, no, but is the script executable? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/lis

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
On 2005-11-03 13:41, Brandon Hinesley <[EMAIL PROTECTED]> wrote: > Okay, I exported the updated path to include "/usr/local/bin". Still not > working though. My script is in /usr/local/Backup/scripts/bkup-daily. > Since I'm referencing the absolute path in /etc/crontab like this: > > 35 13

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
:18 PM To: Brandon Hinesley Cc: freebsd-questions@freebsd.org Subject: Re: Cron Job will not run. Merely adding it as an assignment is not enough for child processes of the cron script to 'see' the value. Make sure you also 'export' the new PATH: PATH='...'

Re: Cron Job will not run.

2005-11-03 Thread Nathan Vidican
/libexec/save-entropy) Nov 3 09:00:00 server /usr/sbin/cron[56344]: (root) CMD (/usr/libexec/atrun) Nov 3 09:00:00 server /usr/sbin/cron[56345]: (root) CMD (/usr/local/Backup/scripts/bkup-daily) Kidding...yes it's running: [EMAIL PROTECTED] ps ax | grep cron 472 ?? Is 0:02.20 /usr/sb

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
On 2005-11-03 13:01, Brandon Hinesley <[EMAIL PROTECTED]> wrote: >Alex Zbyslaw [mailto:[EMAIL PROTECTED] wrote: >> Brandon Hinesley wrote: >>> The script below works perfectly when I run it from a >>> console, however, nothing at all seems to happen as evidenced >>> by the backups not being rotated

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
sage- From: Nathan Vidican [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 1:07 PM To: Brandon Hinesley Cc: [EMAIL PROTECTED] Subject: Re: Cron Job will not run. May be a really dumb question here, but like all technical problems, start with the simple stuff: ps ax |

Re: Cron Job will not run.

2005-11-03 Thread Nathan Vidican
Re: Cron Job will not run. Alex Zbyslaw wrote: Brandon Hinesley wrote: The script below works perfectly when I run it from a console, however, nothing at all seems to happen as evidenced by the backups not being rotated. I don't know if this makes a difference, but the "Backup"

FW: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
ROTECTED] Sent: Thursday, November 03, 2005 12:47 PM To: Brandon Hinesley Cc: freebsd-questions@freebsd.org Subject: Re: Cron Job will not run. Brandon Hinesley wrote: >The script below works perfectly when I run it from a console, however, >nothing at all seems to happen as evidenced by the backu

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
tions@freebsd.org Subject: Re: Cron Job will not run. Alex Zbyslaw wrote: > Brandon Hinesley wrote: > >> The script below works perfectly when I run it from a console, however, >> nothing at all seems to happen as evidenced by the backups not being >> rotated. I don'

Re: Cron Job will not run.

2005-11-03 Thread Chris
Alex Zbyslaw wrote: > Brandon Hinesley wrote: > >> The script below works perfectly when I run it from a console, however, >> nothing at all seems to happen as evidenced by the backups not being >> rotated. I don't know if this makes a difference, but the "Backup" >> folder >> is a file system on

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
Well that's embarrassing. Good eye, thank you. Still not working though. -Original Message- From: DAve [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 12:37 PM To: Brandon Hinesley Subject: Re: Cron Job will not run. Brandon Hinesley wrote: > Here's a copy

Re: Cron Job will not run.

2005-11-03 Thread Alex Zbyslaw
Brandon Hinesley wrote: The script below works perfectly when I run it from a console, however, nothing at all seems to happen as evidenced by the backups not being rotated. I don't know if this makes a difference, but the "Backup" folder is a file system on an external hard drive. I am also u

Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
I've been trying to get this working for quite a while, maybe you guys can help me out. This is my first time administering a FreeBSD server (or any server for that matter) and I've only been using FreeBSD (or any other *nix for that matter) for about 6 months. The script below works perfectly