40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Fri Dec 26 17:45:21 2014, Steve, Update, VAC, vac pressure rose to 1.3 mTorr noN2.pngbacktoVacNormal.png
    Reply  Sun Dec 28 07:29:16 2014, Steve, Update, VAC, vacuum is normal 3d.png
    Reply  Tue Feb 3 15:20:13 2015, Steve, Koji, Update, VAC, Pneumatic pressure is being read again N2pressureReadingIsBack.png
    Reply  Sun Mar 22 18:42:40 2015, Steve, Update, VAC, vac pressure rose to 1.2mTorr NoN2.pngPressureReadingWorks.png
       Reply  Mon Mar 23 10:36:55 2015, ericq, Update, VAC, Pressure watch script 
          Reply  Fri Apr 24 17:30:32 2015, Jenne, Update, VAC, Pressure watch script broken 
             Reply  Sat Apr 25 18:50:47 2015, ericq, Update, VAC, Pressure watch script broken 
                Reply  Sat Apr 25 22:17:49 2015, rana, Update, CDS, MXstream restart script working (beta) 
                   Reply  Tue May 19 17:03:34 2015, Koji, Update, CDS, MXstream restart script working (beta) 
                      Reply  Tue May 19 18:38:33 2015, rana, Update, CDS, MXstream restart script working (beta) 
          Reply  Mon Apr 27 14:37:55 2015, Steve, Update, VAC, N2 pneumatic pressure watch  
             Reply  Thu Apr 30 16:30:25 2015, Steve, Update, VAC, N2 pneumatic pressure watch set up 
          Reply  Tue Jan 31 14:14:29 2017, rana, Update, VAC, Pressure watch script 
       Reply  Sun May 15 19:48:08 2016, Steve, Update, VAC, run out of N2 noN2.png
          Reply  Tue Jun 14 10:13:34 2016, Steve, Update, VAC, temporary N2 supply line afterN2work.png
             Reply  Fri Jun 17 15:22:31 2016, gautam, Update, VAC, N2 supply line restored after retiling c0vac_06172016.png
Message ID: 11249     Entry time: Sat Apr 25 18:50:47 2015     In reply to: 11243     Reply to this: 11250
Author: ericq 
Type: Update 
Category: VAC 
Subject: Pressure watch script broken 

Ugh, this turns out to be because cron doesn't source the controls bashrc that defines where to find caget and all that jazz that many commands depend on. This is probably also why the AutoMX cron job isn't working either. 

Also, cron automatically emails everything from stderr to the email address that is configured for the user, which is why the n2 script blew up the foteee account and why the AutoMX script was blowing up my email yesterday. This can be avoided by doing something like this in the crontab:

0 8 * * * /bin/somecommand >> somefile.log 2>&1

(The >> part means that the standard output is appended to some log file, while the 2>&1 means send the standard error stream to the same place as stdout)

I made this change for the n2 script, so the foteee email account should be safe from this script. I haven't figured out the right way to set up cron to have all the right $PATH and other environment stuff, such as epics may need, so the script is still not working. 

ELOG V3.1.3-