Finished project
This commit is contained in:
parent
7c1ac022cb
commit
9631e2955e
2 changed files with 11 additions and 1 deletions
7
print.sh
Normal file
7
print.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /var/www/html/uploads
|
||||||
|
f=$(ls)
|
||||||
|
lp -d DCPL2550DW -o fit-to-page $f
|
||||||
|
rm -f $f
|
||||||
|
|
||||||
|
|
@ -13,4 +13,7 @@ if (!empty($_FILES)) {
|
||||||
|
|
||||||
move_uploaded_file($tempFile, $targetFile); //6
|
move_uploaded_file($tempFile, $targetFile); //6
|
||||||
|
|
||||||
|
sleep(1);
|
||||||
|
shell_exec('print.sh');
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue