01-08-06 10:57 PM
In article <dppmco$eea$1@bunyip2.cc.uq.edu.au>,
"sheller" <arasu@uq.edu.au> wrote:
> My crontab command in RedHat 8 is
>
> */1 * * * * /home/arasuk/share_file/searcha
>
> The above command works fine with the following
> simple script put in "searcha" (executable)
>
> #!/bin/sh
> ls
>
> . But not with the following
>
> #!/bin/sh
> cp r.file r.out
What error does it get?
>
> This latter script work in command line. I give absolute path
> to the command. Any clue for the latter to work?
If it complains "file not found", it's probably because cron isn't
running the script in the directory you expect.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
[ Post a follow-up to this message ]
|