title: Shell script to use my login environment
body: <p>I have crontab running a shell script periodically. I need the script to run in the same environment that I usually log in. Can I just simply add this line in 2nd line of the script (after shebang).</p>
  
  <pre><code>source /home/&lt;my username&gt;/.cshrc
  </code></pre>
  
  <p>Or what's the proper way to set the cron shell process to use my login environment?</p>
  
  <p>PS: I am quite sure which exactly setting is needed by my script, so I can only source the whole .cshrc.</p>