Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Related and thus possibly helpful: "How to get a clean environment in a ksh shell?" see especially @Gilles answer regarding unset.
    – sr_
    Commented Nov 3, 2011 at 13:16
  • 1
    From @sr_'s link, I looked up env, and you might want to try env -i ./my-script.sh. Also, are you getting an error message?
    – Kevin
    Commented Nov 3, 2011 at 14:12
  • What cron implementation are you using? Commented Nov 3, 2011 at 17:10
  • @kevin - i'll upvote that if you answer with it.
    – cwd
    Commented Dec 20, 2011 at 22:46