Finished project

This commit is contained in:
Merrick 2020-08-20 09:02:44 -04:00
parent 7c1ac022cb
commit 9631e2955e
2 changed files with 11 additions and 1 deletions

7
print.sh Normal file
View 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

View file

@ -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');
} }