in reply to newbie quesiton:how to open file in crob job?

You did it right to express "current directory".
However, cron's current directory doesn't seem to be the one you had in mind: I guess cron will use the user's home.

You might want to   chdir   to the directory or use the full path of the file in   open.

  • Comment on Re: newbie quesiton:how to open file in crob job?

Replies are listed 'Best First'.
Re: Re: newbie quesiton:how to open file in crob job?
by ambrus (Abbot) on Mar 29, 2004 at 09:09 UTC

    I guess cron will use the user's home

    User's? I thought cron will run jobs for root only.

      I thought cron will run jobs for root only.

      If it is set up in such a way that it only runs for root, yes. That depends on how much root the sysadmin will trust you, I guess =)

      Sören