25 lines
536 B
Bash
25 lines
536 B
Bash
#!/bin/bash
|
|
gettaskinfos() {
|
|
echo '
|
|
SELECT
|
|
id,
|
|
source_file,
|
|
cleanup,
|
|
fileid,
|
|
filename
|
|
FROM tasks
|
|
WHERE id='$1';
|
|
' >&3
|
|
read -u4 -d$'\0' line
|
|
taskid=${line%%::AtOM:SQL:Sep::*}
|
|
rest="${line#*::AtOM:SQL:Sep::}::AtOM:SQL:Sep::"
|
|
sourcefileid=${rest%%::AtOM:SQL:Sep::*}
|
|
rest=${rest#*::AtOM:SQL:Sep::}
|
|
cleanup=${rest%%::AtOM:SQL:Sep::*}
|
|
rest=${rest#*::AtOM:SQL:Sep::}
|
|
destfileid=${rest%%::AtOM:SQL:Sep::*}
|
|
rest=${rest#*::AtOM:SQL:Sep::}
|
|
destfilename=${rest%%::AtOM:SQL:Sep::*}
|
|
rest=${rest#*::AtOM:SQL:Sep::}
|
|
}
|