Skip to content
Snippets Groups Projects
Commit da09e1d8 authored by Davide Cristoforetti's avatar Davide Cristoforetti
Browse files

Added bash script to automatically allocate memory

parent 6e92d42a
No related branches found
No related tags found
No related merge requests found
Pipeline #8024021 failed
#!/bin/bash
scdaq_data_path="/home/dcristof/scdaq/test/data/run000000/in_progress"
famfs_path="/home/dcristof/famfs/debug/famfs"
mnt_path="/mnt/famfs/run000000/in_progress/"
sudo rm -rf "$mnt_path"/*
for file in "$scdaq_data_path"/*; do
filesize=$(stat -c%s "$file")
filename=$(basename "$file")
echo "${filename}: ${filesize} bytes"
sudo $famfs_path creat -s $filesize "$mnt_path$filename"
done
ls -las $mnt_path
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