perfsonar-dev - Re: [pS-dev] perfsonar: r3702 - branches/rpm
Subject: perfsonar development work
List archive
- From: Guilherme Fernandes <>
- To: Ralf Kleineisel <>
- Cc:
- Subject: Re: [pS-dev] perfsonar: r3702 - branches/rpm
- Date: Wed, 16 Apr 2008 15:55:39 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ERjEo0BUnUF68doLZ/xU1hweNdE6+qpuQADMoma3xFlEEezxUSV9VV6QdqNlrjYMckkih3HEXW+z4gq8fUprF0Llwk7ulHjuoWXP5tIX/npn8L+QkUTSZGVgO4qmJhiQg2vcLu3ypFCATKbnp84CWt/wHNVpvH0QX5fMqI/bQ3U=
Ralf Kleineisel wrote:
Thanks for the input, I'll make the changes!
wrote:
- open( RPMMACROS, "> ~/.rpmmacros") or die "There was a problem opening the
file ~/.rpmmacros for writing.";
+ my $homedir = `echo ~`; # workaround for Ubuntu (and maybe others)
~/.rpmmacros bug
This will only work if the shell that happens to run the echo expands "~".
The IMHO best way in perl would be:
my @pwuid = getpwuid($<);
my $homedir = $pwuid[7];
or $ENV{HOME} on Unixoid systems.
Guilherme
- perfsonar: r3702 - branches/rpm, svnlog, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Ralf Kleineisel, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Guilherme Fernandes, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Ralf Kleineisel, 04/16/2008
Archive powered by MHonArc 2.6.16.