Hi John, (Cc:ing this also to x2go-dev)
On Fr 08 Apr 2011 15:38:32 CEST "John A. Sullivan III" wrote:
Phil has patched the x2goprint script to fix the disappearing print job problem and will be posting those patches to the dev list shortly.
Please note that I have also patched x2goprint that's stil pending for
inclusion in x2goserver (we will drop the separate x2goprint project):
http://code.x2go.org/gitweb?p=x2goserver.git;a=shortlog;h=refs/heads/pending...
The patch makes x2goprint usable on NFS mounted home directories.
Furthermore, I guess it needs patches of cups-x2go as well. Because
there are indeed some lost jobs and also zombie files that collect up
(e.g. in /).
I guess the best approach for providing patches and share your work
would be to work on the code base in Git on code.x2go.org.
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
----- Original Message -----
Hi John, (Cc:ing this also to x2go-dev)
On Fr 08 Apr 2011 15:38:32 CEST "John A. Sullivan III" wrote:
Phil has patched the x2goprint script to fix the disappearing print job problem and will be posting those patches to the dev list shortly.
Please note that I have also patched x2goprint that's stil pending for inclusion in x2goserver (we will drop the separate x2goprint project): http://code.x2go.org/gitweb?p=x2goserver.git;a=shortlog;h=refs/heads/pending...
The patch makes x2goprint usable on NFS mounted home directories.
Furthermore, I guess it needs patches of cups-x2go as well. Because there are indeed some lost jobs and also zombie files that collect up (e.g. in /).
I guess the best approach for providing patches and share your work would be to work on the code base in Git on code.x2go.org.
Greets, Mike
Mike,
what I found was that the .ready file was sometimes not created on the SSHFS mounted spool directory; and as it was not there the X2Go print dialogue box would not be shown. I basically changed the code to the following:
if( $mounts=~m/$spooldir/) { move ("$printdir/$file", "$spooldir") or die "$!: Can't rename $file to $homedir/.x2go/C-$session/$file"; $file $spooldir\"");
my $counter = 0;
while ( ! -f "$spooldir/$file.ready" && $counter < 10 )
{
open (RFILE,">$spooldir/$file.ready");
print RFILE "$file\n$title";
close (RFILE);
$counter = $counter + 1;
}
if ( $counter > 1 ) { syslog("info", "Failed to write ready file - Count $counter - C-$session/$file"); }
} else { unlink("$printdir/$file"); }
Thanks, Phil
Hi Phil,
On Sa 09 Apr 2011 09:29:49 CEST "--[ UxBoD ]--" wrote:
if( $mounts=~m/$spooldir/) { move ("$printdir/$file", "$spooldir") or die "$!: Can't rename
$file to $homedir/.x2go/C-$session/$file"; $file $spooldir"");my $counter = 0; while ( ! -f "$spooldir/$file.ready" && $counter < 10 ) { open (RFILE,">$spooldir/$file.ready"); print RFILE "$filen$title"; close (RFILE); $counter = $counter + 1; } if ( $counter > 1 ) { syslog("info", "Failed to write ready
file - Count $counter - C-$session/$file"); } } else { unlink("$printdir/$file"); }
I am not sure if this really is a solution to what you observe. This
only seems like a workaround. The syslog entry however is valuable.
Do you think you can find some time to debug what is really going on?
We actually need documentation of what happens during
cups-x2go/x2goprint'ing...
Maybe we will find a solution that really tracks the issue down
instead of looping around it (wouldn't it need some sort of a sleep
statement in the loop?).
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...