, , , , . , bash , python. , Python, , .
- shutil:
shutil.copyfile('file.txt', '/dev/usb/lp0')
(, , , .)
, , , . :
import shutil
while True:
line = raw_input()
if line == 'certain input':
shutil.copyfile('file.txt', '/dev/usb/lp0')
, - , , , , .. , cmd - .