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 [EMAIL PROTECTED] 'lpr /tmp/$file' else cat | ssh [EMAIL PROTECTED] 'lpr /tmp/$file' fi echo "complete" Cheerio, Jan _______________________________________________ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users