Skip to content
Snippets Groups Projects
Commit c57537cb authored by Erik von Reis's avatar Erik von Reis
Browse files

Merge branch 'branch-4.2' into better_safe_snap

parents 37441181 5877ac78
No related branches found
No related tags found
3 merge requests!439RCG 5.0 release fro deb 10,!332Merging 4.2 into master,!331Draft: Merging branch-4.2 into master
......@@ -60,6 +60,7 @@ if test -e $TARGET; then
fi
mkdir -p $TARGET/{bin,scripts,logs}
mkdir -p $RTCDS/chans/tmp
chmod 775 $TARGET/logs
mkdir -p $TARGET/${system}epics/burt
if [ -e $RTCDS/target_archive/${system}/${system}_$cur_date/${system}epics/burt ]; then
......
package CDS::IPCmonitor;
use Exporter;
use File::Path;
@ISA = ('Exporter');
#// \page IPCx IPCx.pm
......@@ -227,11 +228,17 @@ my @ipcxMaxNum = (-999,-999,-999,-999);
# Develop name of IPC parameter file based on return from above.
#my ($i) = @_;
my $iFile = $::target;
$iFile .= "/chans/ipc/";
$iFile .= $::ifo;
$iFile .= "\.ipc";
my $iFilePath = $::target;
$iFilePath .= "/chans/ipc/";
my $iFile .= $iFilePath . $::ifo;
$iFile .= "\.ipc";
# Open and input data from IPC parameter file
File::Path::make_path($iFilePath);
unless (-e $iFile)
{
open(TOUCH, ">>$iFile");
close(TOUCH);
}
open(IPCIN, "<$iFile") || die "***ERROR: IPCx parameter file $iFile not found\n";
chomp(@inData=<IPCIN>);
close IPCIN;
......
package CDS::IPCx;
use Exporter;
use File::Path;
@ISA = ('Exporter');
#// \page IPCx IPCx.pm
......@@ -331,12 +332,18 @@ if ($::ipcxCnt > 0) {
# Develop name of IPC parameter file based on return from above.
#my ($i) = @_;
my $iFile = $::target;
$iFile .= "/chans/ipc/";
$iFile .= $::ifo;
$iFile .= "\.ipc";
#my ($i) = @_;
my $iFilePath = $::target;
$iFilePath .= "/chans/ipc/";
my $iFile .= $iFilePath . $::ifo;
$iFile .= "\.ipc";
# Open and input data from IPC parameter file
File::Path::make_path($iFilePath);
unless (-e $iFile)
{
open(TOUCH, ">>$iFile");
close(TOUCH);
}
open(IPCIN, "<$iFile") || die "***ERROR: IPCx parameter file $iFile not found\n";
chomp(@inData=<IPCIN>);
close IPCIN;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment