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.