diff --git a/src/parallel b/src/parallel index 62bd08b2..d6414ac1 100755 --- a/src/parallel +++ b/src/parallel @@ -4431,9 +4431,6 @@ sub print { # cleanup tmp files if --files was set unlink $self->fd_file_name(1); } - # Only relevant for grouping - $Global::grouped or return; - my $command = $self->sshlogin_wrap(); if($Global::joblog) { my $cmd; @@ -4453,6 +4450,10 @@ sub print { $self->set_job_in_joblog(); } + # Printing is only relevant for grouped output. + $Global::grouped or return; + my $command = $self->sshlogin_wrap(); + if(($opt::dryrun or $Global::verbose) and $Global::grouped) { if($Global::verbose <= 1) { print STDOUT $self->replaced(),"\n";