Answer the question
In order to leave comments, you need to log in
How to correctly specify a variable in a script?
Good day. I need to first move the files from VIDEO_FILE_PATH to another folder, and then upload all this to the nextcloud ..
curl swears, which is logical.
How to pass file names to it correctly?
actual code
RECORDINGS_DIR=/config/recordings;
VIDEO_FILE_PATH=$(find $RECORDINGS_DIR -name *.mp4);
mkdir -p /config/rec;
curl -u login:pass -T имя файла https://site.com/remote.php/dav/files/login/upload/
rm -f $VIDEO_FILE_PATH;
Answer the question
In order to leave comments, you need to log in
Array size posX and posY - not set.
Iterating over the enemy array is kind of strange in general. Are you sure that the condition ==?
RECORDINGS_DIR=/config/recordings
curl -u login:pass -T "{$(echo $RECORDINGS_DIR/*.mp4 | tr ' ' ',')}" \
https://site.com/remote.php/dav/files/login/upload/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question