bugGNU Parallel - Bugs: bug #64922, --embedded wrapper for...

 
 

bug #64922: --embedded wrapper for R/Octave/Perl/Python

Submitter:  None
Submitted:  Thu 23 Nov 2023 03:29:39 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
   

Sun 24 Dec 2023 09:47:58 PM UTC, comment #3: 

Released as --combine-exec in 20231222.

Ole Tange <tange>
Group administrator
Fri 24 Nov 2023 11:37:29 AM UTC, comment #2: 

    $ENV{TMPDIR}="/tmp";
    my $embedded = 1;
    if($embedded) {
        my @embedded_options = qw{--jobs 100%};
        my ($fh,$script) = tmpfile();
        # Set +x permission
        chmod 0700, $script;
        # Write the script
        print $fh <DATA>;
        close $fh;
        # Mark it for unlinking later
        $Global::unlink{$script}++;
        unshift(@ARGV,@embedded_options,$script,":::");
        print "$script\n";
    }

Anonymous
Fri 24 Nov 2023 11:20:42 AM UTC, comment #1: 

    my $script = "/tmp/script";
    open(D,">",$script) || die;
    print D <DATA>;
    close D;
    `chmod +x $script`;

    unshift(@ARGV,$script,":::");

    main();
    _END_
    #!/bin/bash

    echo Arguments "$@"




Anonymous
Thu 23 Nov 2023 03:29:39 PM UTC, original submission:  

--shebang-wrap works if GNU Parallel is installed.

Is it possible to do something similar to --embed, so GNU Parallel does not have to be installed?


    parallel --embed-wrap myprg.py > wrapped.sh

wrapped.sh should then do like --shebang-wrap but with GNU Parallel embedded in wrapped.sh.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-24 tange StatusNone Fixed
        Assigned toNone tange
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code