|
Prev: Change directory modification date
Next: FTP mv command
From: RexJacobus on 4 May 2008 22:46 I am not the Unix guy at my job. He left me a very simple change to do to the monthly backup before he went on holiday. I made the change but didn't put the correct permissions when I put it on the server so the monthly backup did not run over the weekend. I have reset the permissions. How can I run the monthly backup job manually. I don't want to mess with cron and if it doesn't work for some other reason I will need to run the copy I archived. Rex
From: andrew on 5 May 2008 00:03 On 2008-05-05, RexJacobus <rex.jacobus(a)gmail.com> wrote: > I am not the Unix guy at my job. He left me a very simple change to > do to the monthly backup before he went on holiday. I made the change > but didn't put the correct permissions when I put it on the server so > the monthly backup did not run over the weekend. > > I have reset the permissions. How can I run the monthly backup job > manually. I don't want to mess with cron and if it doesn't work for > some other reason I will need to run the copy I archived. The cron job would point to a script? You should be able to simply run the script. Andrew -- http://www.andrews-corner.org
From: RexJacobus on 5 May 2008 00:46 On May 5, 4:03 pm, andrew <and...(a)ilium.invalid> wrote: > On 2008-05-05, RexJacobus <rex.jaco...(a)gmail.com> wrote: > > > I am not the Unix guy at my job. He left me a very simple change to > > do to the monthly backup before he went on holiday. I made the change > > but didn't put the correct permissions when I put it on the server so > > the monthly backup did not run over the weekend. > > > I have reset the permissions. How can I run the monthly backup job > > manually. I don't want to mess with cron and if it doesn't work for > > some other reason I will need to run the copy I archived. > > The cron job would point to a script? You should be able to simply run > the script. > > Andrew > > --http://www.andrews-corner.org The cron job runs monthly_save. When I go onto the server navigate to \cron and type in 'monthly_save' it just says 'command not found'. (if I type dir i can see it).
From: Bill Marcum on 5 May 2008 03:00 On 2008-05-05, RexJacobus <rex.jacobus(a)gmail.com> wrote: > > > On May 5, 4:03 pm, andrew <and...(a)ilium.invalid> wrote: >> On 2008-05-05, RexJacobus <rex.jaco...(a)gmail.com> wrote: >> >> > I am not the Unix guy at my job. He left me a very simple change to >> > do to the monthly backup before he went on holiday. I made the change >> > but didn't put the correct permissions when I put it on the server so >> > the monthly backup did not run over the weekend. >> >> > I have reset the permissions. How can I run the monthly backup job >> > manually. I don't want to mess with cron and if it doesn't work for >> > some other reason I will need to run the copy I archived. >> >> The cron job would point to a script? You should be able to simply run >> the script. >> >> Andrew >> >> --http://www.andrews-corner.org > > The cron job runs monthly_save. When I go onto the server navigate to > \cron and type in 'monthly_save' it just says 'command not found'. > (if I type dir i can see it). > If monthly_save is in the /cron directory, type ./monthly_save
From: Joachim Schmitz on 5 May 2008 11:33
RexJacobus wrote: > On May 5, 4:03 pm, andrew <and...(a)ilium.invalid> wrote: >> On 2008-05-05, RexJacobus <rex.jaco...(a)gmail.com> wrote: >> >>> I am not the Unix guy at my job. He left me a very simple change to >>> do to the monthly backup before he went on holiday. I made the >>> change but didn't put the correct permissions when I put it on the >>> server so the monthly backup did not run over the weekend. >> >>> I have reset the permissions. How can I run the monthly backup job >>> manually. I don't want to mess with cron and if it doesn't work for >>> some other reason I will need to run the copy I archived. >> >> The cron job would point to a script? You should be able to simply >> run the script. >> >> Andrew >> >> --http://www.andrews-corner.org > > The cron job runs monthly_save. When I go onto the server navigate to > \cron and type in 'monthly_save' it just says 'command not found'. > (if I type dir i can see it). in UNIX the current directory is not part of PATH. Inside cron it isn't either, so you'd need to call it fully qualified, with an absolute filename/one begining with /) or with a relative filename (relative to the current directory), e.g. ./monthly_save. Howvet to test it poiperly, use the 'at' command at now /cron/monthly_save That way the command should get exactly the same environment as if run by cron. Bye, Jojo |