Default scanbd install references missing scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
scanbd (Ubuntu) |
Triaged
|
Medium
|
Rolf Leggewie |
Bug Description
The default install references a missing script (and directory) at /etc/scanbd/
scanbd: trigger action for scan for device fujitsu:ScanSnap S510M:503191 with script test.script
scanbd: access: No such file or directory
scanbd: stat: No such file or directory
scanbd: execlp: No such file or directory
scanbd: dbus match type='signal'
scanbd: Not Primary Owner (2)
scanbd: trigger action for page-loaded for device fujitsu:ScanSnap S510M:503191 with script (null)
scanbd: trigger action for scan for device fujitsu:ScanSnap S510M:503191 with script test.script
scanbd: access: No such file or directory
scanbd: stat: No such file or directory
scanbd: execlp: No such file or directory
I'd suggest including a scripts/test.script with the following content:
#!/bin/bash
# Replace this placeholder script with something like
# https:/
logger -t "scanbd: $0" "Begin of $SCANBD_ACTION for device $SCANBD_DEVICE"
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: scanbd 1.4.4-1build1
ProcVersionSign
Uname: Linux 4.8.0-22-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Feb 21 11:51:44 2017
InstallationDate: Installed on 2015-12-13 (436 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: scanbd
UpgradeStatus: Upgraded to yakkety on 2017-01-09 (43 days ago)
Changed in scanbd (Ubuntu): | |
assignee: | nobody → Rolf Leggewie (r0lf) |
importance: | Undecided → Medium |
Changed in scanbd (Ubuntu): | |
status: | New → Triaged |
This bug could be fixed by documentation --- there is no documentation with the package about the scripts!
To get this working, I had to understand scanbd.conf, which is in directory with 72 other .conf files. It took an hour to just understand what I was supposed to do.
I like Dylan's default script. I would also add to the log "This script is located at /etc/scanbd/ scripts/ test.script if you want to edit it."
For other users' information, this was the script I ended up using:
#! /bin/sh
echo >> /tmp/scanbd_ tests.txt tests.txt
echo Starting. >> /tmp/scanbd_
echo Running as `whoami` >> /tmp/scanbd_ tests.txt
DATETIME=`date +"%FT%T.%N"` tests.txt
echo Datetime is $DATETIME >> /tmp/scanbd_
DIR=`mktemp -d` tests.txt
cd $DIR
echo made and moved to $DIR >> /tmp/scanbd_
echo scanning >> /tmp/scanbd_ tests.txt
#scanimage -L # tells you what devices are on the system.
scanimage -b --format png -d 'fujitsu:ScanSnap S1500:5856' --source 'ADF Front' --resolution 150
# WARN: PDF generation was disabled by default. k-6/policy. xml tests.txt
# Re-enable it by editing /etc/ImageMagic
echo converting *.png >> /tmp/scanbd_
convert *.png scan.pdf
echo OCR-ing >> /tmp/scanbd_ tests.txt
ocrmypdf scan.pdf scan_ocr.pdf
DIRNAME= /home/mike/ Desktop/ Home/life/ scanned_ documents/ "scan_$ {DATETIME} .pdf"
FILENAME=
echo moving to "$DIRNAME$FILENAME" >> /tmp/scanbd_ tests.txt
mv scan_ocr.pdf "$DIRNAME$FILENAME"
echo changing owner of "$DIRNAME$FILENAME" >> /tmp/scanbd_ tests.txt
chown mike:mike "$DIRNAME$FILENAME"
echo Done. >> /tmp/scanbd_ tests.txt