bugGNU Parallel - Bugs: bug #42493, --sshlogin does not send stderr to...

 
 

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

Submitter:  None
Submitted:  Mon 02 Jun 2014 03:29:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 14 Oct 2018 06:14:07 PM UTC, comment #9: 

Fixed long before 20180922.

Ole Tange <tange>
Group administrator
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>
Group administrator
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>
Group administrator
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>
Group administrator
Wed 24 Sep 2014 04:26:29 PM UTC, comment #5: 

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

Ole Tange <tange>
Group administrator
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>
Group administrator
Wed 09 Jul 2014 06:51:13 AM UTC, comment #3: 
Ole Tange <tange>
Group administrator
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>
Group administrator
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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by tange (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-14 tange StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-06-02 tange StatusNone Confirmed
        Assigned toNone tange
        Summary--sshlogin breaks --results --sshlogin does not send stderr to stderr
    2014-06-02 None Attached File- Added log.txt, #31487

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code