[maemo-users] Printing?

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

 



On Sunday 28 January 2007 01:49:39 pm Jonathan Greene wrote:
> On 1/28/07, Damien Challet <dchallet at onetel.com> wrote:
> > On Sunday 28 January 2007 21:56, James Sparenberg wrote:
> > > On Sunday 28 January 2007 11:38, Damien Challet wrote:
> > > > On Sunday 28 January 2007 16:56, Humberto Ortiz-Zuazaga wrote:
> > > > > Jonathan Greene wrote:
> > > > > > It would be great to print from my N800 to a network accessible
> > > > > > printer... Anyone figure a hack for this?
> > > > >
> > > > > There are remote only lpr tools, like http://truffula.com/rlpr/.
> > > > > Maybe these can run on maemo?
> > > >
> > > > this is what I use in an other context:
> > > >
> > > > #!/usr/bin/perl
> > > > my($file)=$ARGV[0];
> > > > system("scp $file user\@host:");
> > > > system("ssh user\@host lpr $file");
> > > > sleep 100;
> > > > system("ssh user\@host rm -f $file");
> > > > exit;
> > >
> > > Damien,
> > >
> > >    If I'm understanding this correctly, you are saying (in perl) take
> > > this file and move it to that host and print it using it's defaults. 
> > > Or am I wrong.  (If I'm right, slick idea!)
> >
> > Yes, that is correct, assuming also that key authentification is set up.
> >
> > One should of course convert it into a shell script.
>
> That would be pretty amazing and if in OSX, I set up an automator
> action to watch a particular folder and print new things... it would
> totally work!

No need since when you run this script it does the print command from the get 
go and IIRC lpr works with OSX as well.
>
> How would I make it a shell script?  And how would you do it from
> something like Opera for example?  There is no file to move around...

You don't do it from opera per se but you create the program and then (if this 
was a desktop) you tell opera that the print command is this script.  Hmmm 

James






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

  Powered by Linux