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

Try to use at instead of cron. At is smart enough to save a lot of the caller process's attributes. It will invoke the process as the same userid, from the same working directory, and even environment, umask. (Why isn't nice saved, by the way?)