bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #35820, sem breaks if $HOME is not writable

 
 

bug #35820: sem breaks if $HOME is not writable

Submitted by:  None
Submitted on:  Mon 12 Mar 2012 09:52:25 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 06 May 2012 02:56:53 PM UTC, comment #1:

I believe this is an extremely rare situation, so I do not think this is generally usefull.

You can use this workaround:

HOME=/tmp parallel command

From next version this will work, too:

HOME=/tmp sem command

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 12 Mar 2012 09:52:25 PM UTC, original submission:

Don't ask why, but I can't write to $HOME. And everything would be fine. I'd like to use /tmp to do some stuff but parallel/sem insists on using $HOME and this is (I think) why:

my @config_profiles = (
"/etc/parallel/config",
$ENV{'HOME'}."/.parallel/config",
$ENV{'HOME'}."/.parallelrc");
my @profiles = @config_profiles;
if(@::opt_profile) {
# --profile overrides default profiles
@profiles = ();
for my $profile (@::opt_profile) {
push @profiles, $ENV{'HOME'}."/.parallel/".$profile;

So there is some flexibility in where this stuff is as long as you stick with $ENV{'HOME'}. The option --profile should at least play nicely. The man page says: "If --profile set, GNU parallel will read the profile from that file instead of ~/.parallel/config." But really it will try to read that file if that file is in ~/.parallel (or something like that). Anyway, maybe throw this in with my previous bug about clumsy error handling of read only directories. Thanks!

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Updated the item)
  •  

    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
    Sun 06 May 2012 02:56:53 PM UTCtangeStatusNone=>Wont Fix
      Assigned toNone=>tange
      Open/ClosedOpen=>Closed
    Fri 30 Mar 2012 02:21:07 PM UTCtangeSummarysem breaks if $HOME is not a cool place to do business.=>sem breaks if $HOME is not writable

    Back to the top


    Powered by Savane 3.1-cleanup1