Experimental Physics and Industrial Control System
Thanks very much. That's right. I though the epics environment as all of the users'. After source the environment, it works now.
-----éäåä-----
åää: [email protected] [mailto:[email protected]] äè Benjamin Franksen
åéæé: 2010å4æ28æ 17:06
æää: [email protected]
äé: Re: çå: hi,how to use burtrb to save status as a task?
On Wednesday 28 April 2010, æåè wrote:
> Thanks for your reply. I am sorry for my careless. I did use the request
> file in the script "burtrb -f 17U-all.req -l name.log -o name.snap" and
> there are no #autosave. I am sorry again. The script is executed but
> only the first value is recorded. While executing the script directly,
> all the value is saved.
Hm, maybe you have set EPICS_CA_AUTO_ADDR_LIST or EPICS_CA_ADDR_LIST in your
interactive shell environment? Note that cron (necessarily) starts its jobs
with a fresh (and non-interactive) environment under a /bin/sh. It could be
/bin/sh is not bash, but a simpler shell like dash (this is the case with
newer versions of ubuntu, for instance). Thus /bin/sh might not read
~/.bashrc. It _does_ read ~/.profile if it exists, though.
Cheers
Ben
>
> The request file content is below:
>
> ------------------------
> %
> %17U Ion chamber
> %
> 17U:ES:ADC-01.VAL
>
> %
> %17U Energy
> %
> X17U1:OP:Mono:Soft_bragg.VAL
>
> %
> %17U XBPM position
> %
> X17U1:FE:XBPM1:POS:X
> X17U1:FE:XBPM1:POS:Y
>
> %
> %17U SLIT1
> %
> X17U1:OP:SLIT1:size_x.RBV
> X17U1:OP:SLIT1:center_x.RBV
> X17U1:OP:SLIT1:size_y.RBV
> X17U1:OP:SLIT1:center_y.RBV
>
>
> %
> %17U T2
> %
> X17U1:OP:Mono:T2.RBV
>
> %
> %17U Piezo
> %
> X17U1:E621:GET_SERVO
> X17U1:E621:PUT_VOL
> X17U1:E621:GET_VOL
> ....
>
> The snap file is:
> -------------------------------------
> --- Start BURT header
> Time: Wed Apr 28 15:30:04 2010
> Login ID: mx ()
> Eff UID: 501
> Group ID: 500
> Keywords:
> Comments:
> Type: Absolute
> Directory /home/mx/beamstatus
> Req File: 17U-all.req
> --- End BURT header
> 17U:ES:ADC-01.VAL 1 -9.159466308435188e-04
>
> The log file is:
> -------------------------------------
> X17U1:OP:Mono:Soft_bragg.VAL ... not connected so no
> ca_array_get_callback() X17U1:FE:XBPM1:POS:X ... not connected so no
> ca_array_get_callback() X17U1:FE:XBPM1:POS:Y ... not connected so no
> ca_array_get_callback() X17U1:OP:SLIT1:size_x.RBV ... not connected so
> no ca_array_get_callback() X17U1:OP:SLIT1:center_x.RBV ... not connected
> so no ca_array_get_callback() X17U1:OP:SLIT1:size_y.RBV ... not
> connected so no ca_array_get_callback() X17U1:OP:SLIT1:center_y.RBV ...
> not connected so no ca_array_get_callback() X17U1:OP:Mono:T2.RBV ... not
> connected so no ca_array_get_callback() X17U1:E621:GET_SERVO ... not
> connected so no ca_array_get_callback() X17U1:E621:PUT_VOL ... not
> connected so no ca_array_get_callback() X17U1:E621:GET_VOL ... not
> connected so no ca_array_get_callback() X17U1:OP:SLIT2:size_x.RBV ...
> not connected so no ca_array_get_callback() X17U1:OP:SLIT2:center_x.RBV
> ... not connected so no ca_array_get_callback()
> X17U1:OP:SLIT2:size_y.RBV ... not connected so no
> ca_array_get_callback() X17U1:OP:SLIT2:center_y.RBV ... not connected so
> no ca_array_get_callback() X17U1:OP:M1:Soft_z.RBV ... not connected so
> no ca_array_get_callback( .......
>
> -----éäåä-----
> åää: [email protected] [mailto:[email protected]]
> äè Pete R. Jemian åéæé: 2010å4æ28æ 15:09
> æää: [email protected]
> äé: Re: hi, how to use burtrb to save status as a task?
>
>
> You do not show a BURT request file that contains the list of PVs you
> wish to record. Name the request file with something like this:
>
> Pathtoburtrb -f requestFile.req ïl name.log ïo name.snap
>
>
> Also, the first two lines in your script should be swapped:
>
> #!/bin/bash
> #autosave
>
> On 4/27/2010 11:30 PM, æåè wrote:
> > Hello, I write a shell script which use burtrb to save the beamline
> > status every an hour. When I execute the script, it is ok. But I add it
> > as a task by crontab, there always connect failed.
> >
> > The shell script just like:
> >
> > #autosave
> >
> > #!/bin/bash
> >
> > Cd pathtosavedata
> >
> > #create the snap file name
> >
> > â
> >
> > â
> >
> > Pathtoburtrb ïl name.log ïo name.snap
> >
> > Chmod a+x autosave
> >
> > The crontab like below:
> >
> > 30 * * * * user pathtoautosave
> >
> > It did execute the task, but it always failed to connect to pv expect
> > the first one, even I use the parameter ïr 10. Please help me figure
> > out the problem.
> >
> > Thanks very much.
>
--
Benjamin Franksen
Control System Group
Elektronenspeicherring BESSY II
Albert-Einstein-Str. 15, 12489 Berlin
Fon +49 30 6392 4982
Fax +49 30 6392 4859
[email protected]
- Navigate by Date:
- Prev:
Re: çå: hi, how to use burtrb to save status as a task? Benjamin Franksen
- Next:
RE: Interests in EPICS c# Library Bertrand Alain
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: çå: hi, how to use burtrb to save status as a task? Benjamin Franksen
- Next:
LabVIEW Native Channel Access for EPICS Alan Greer
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024