[maemo-users] [maemo-users] Printing?
From: James Sparenberg james at linuxrebel.orgDate: Mon Jan 29 09:56:10 EET 2007
- Previous message: [maemo-users] Printing?
- Next message: [maemo-users] Some Thoughts Regarding IT OS 2007 and the N800
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sunday 28 January 2007 10:43:30 pm Jan Wender wrote: > 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" Just curious, why the cat? > > Cheerio, Jan > _______________________________________________ > maemo-users mailing list > maemo-users at maemo.org > https://maemo.org/mailman/listinfo/maemo-users
- Previous message: [maemo-users] Printing?
- Next message: [maemo-users] Some Thoughts Regarding IT OS 2007 and the N800
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]