bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #42493, --sshlogin does not send stderr to...

 
 

bug #42493: --sshlogin does not send stderr to stderr

Submitted by:  None
Submitted on:  Mon 02 Jun 2014 03:29:31 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 01 Jan 2015 05:10:32 PM UTC, comment #8:

parallel not in path on remote system. Auto detect CPU cores

PATH=/other/dir
parallel --env PATH -S emptypath@lo true ::: 1

Ole Tange <tange>
Project AdministratorIn charge of this item.
Thu 01 Jan 2015 05:08:53 PM UTC, comment #7:

Tests to do:

myfunc() { echo myfunc $* ; }
export -f myfunc
csh -c "parallel --env myfunc -S parallel@lo myfunc ::: a"

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 17 Nov 2014 01:28:03 AM UTC, comment #6:

The optimal for GNU/Linux is to use 'ssh (no -tt)' and the script: It will give both Ctrl-C and no mixing of STDERR.

For all other platforms 'ssh -tt' or plain 'ssh' will be preferable. --ctrlc will use 'ssh -tt' and --noctrlc will use 'ssh'.

If the default is to use plain 'ssh' then the script can auto detect the platform and disable if the platform is unsupported.

Use --ctrlc to force using 'ssh -tt'.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Wed 24 Sep 2014 04:26:29 PM UTC, comment #5:

Could the OS be detected by --filter-hosts?

Ole Tange <tange>
Project AdministratorIn charge of this item.
Tue 15 Jul 2014 10:38:26 PM UTC, comment #4:

I have now worked a bit further on this. It seems to only work for Linux, Sco SYS V and Unixware.

Correct behaviour: suse, debian, mandriva, scosysv, ubuntu, unixware, redhat, raspberrypi

Finished, remote sleep not killed: tru64, hurd, miros, freebsd, openbsd, netbsd, qnx, dragonfly

Finished, other: minix, ultrix

Not finished: solaris, centos, openindiana, irix, aix, hpux

With exit instead of $done=1. Exit value is wrong for all. All finished

Finished, sleep killed: centos

Finished, sleep not killed: irix, aix, openindiana, solaris, hpux

Ole Tange <tange>
Project AdministratorIn charge of this item.
Wed 09 Jul 2014 06:51:13 AM UTC, comment #3:

A possible solution:

http://unix.stackexchange.com/questions/134139/stderr-over-ssh-t

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 02 Jun 2014 04:49:51 PM UTC, comment #2:

It is cause by 'ssh -t' which was introduced to propagate Ctrl-C to jobs running remotely.

So we need a way of 'ssh -t' to keep stderr on stderr.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 02 Jun 2014 04:07:09 PM UTC, comment #1:

It seems this is a bug introduced between
20130307 and 20130422:

$ parallel-20130307 -S parallel@lo ls {}\; echo {} ::: 1 2>/dev/null
1

$ parallel-20130422 -S parallel@lo ls {}\; echo {} ::: 1 2>/dev/null
ls: cannot access 1: No such file or directory
1

I do not think it has anything to do with --results (but since the above is wrong, --results will be wrong, too).

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 02 Jun 2014 03:29:31 PM UTC, original submission:

Hi,

When I'm using --sshlogin with --results then both stderr and stdout goes to stdout file (stderr is empty).

I'm ataching way to reproduce this.

Best,
Pawel

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #31487:  log.txt added by None (786B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 02 Jun 2014 04:07:09 PM UTCtangeStatusNone=>Confirmed
      Assigned toNone=>tange
      Summary--sshlogin breaks --results=>--sshlogin does not send stderr to stderr
    Mon 02 Jun 2014 03:29:31 PM UTCNoneAttached File-=>Added log.txt, #31487

    Back to the top


    Powered by Savane 3.1-cleanup1