[maemo-users] Printing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A little enhancement, but untested. And maybe it would be better to
use /bin/sh, because on normal devices no bash is installed.

#!/bin/sh

user=[put your user here]
host=[put fqdn or up of printer host here]

if [ $# -ge 1 ];then
  file=$1
  cat $file | ssh $user@$host 'lpr /tmp/$file'
else
  cat | ssh $user@$host 'lpr /tmp/$file'
fi
echo "complete"

Cheerio, Jan



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux