Re: bootstrap.pl for setting up my machine

2011-10-29 Thread Jim Gibson
At 11:24 PM +0200 10/29/11, Sime Ramov wrote: * Shlomi Fish [2011-10-29T19:03+0200]: Since you're not interested in the output of the pkg_add command, you should do: system("pkg_add", $_); Actually, I am. I want to be able to interface with the program. E.g. if there are multiple flavors

Re: A question regarding turning off the ornaments on Term::Readline

2011-10-29 Thread Anneli Cuss
> http://perldoc.perl.org/Term/ReadLine.html http://perldoc.perl.org/Term/ReadLine.html#Additional-supported-functions Try $terminal->ornaments(0); -- it works for me in this context: my $terminal = Term::ReadLine->new('pw7'); $terminal->ornaments(0); my $r = $terminal->readline; # no underline

Re: bootstrap.pl for setting up my machine

2011-10-29 Thread Sime Ramov
* Shlomi Fish [2011-10-29T19:03+0200]: > Since you're not interested in the output of the pkg_add command, you should > do: > > system("pkg_add", $_); Actually, I am. I want to be able to interface with the program. E.g. if there are multiple flavors for some package, `pkg_add` might prompt me w

Re: bootstrap.pl for setting up my machine

2011-10-29 Thread Shlomi Fish
ׁHello Sime, On Sat, 29 Oct 2011 18:25:57 +0200 Sime Ramov wrote: > Nothing to get excited about as this is just a beginning of my first > Perl script. Intention is to pipe it from some web accessible location > to perl upon first boot. > > I have difficulties with 'perlism' as I tend to only w

bootstrap.pl for setting up my machine

2011-10-29 Thread Sime Ramov
Nothing to get excited about as this is just a beginning of my first Perl script. Intention is to pipe it from some web accessible location to perl upon first boot. I have difficulties with 'perlism' as I tend to only write small trivial shell scripts. More specifically, the following line:

A question regarding turning off the ornaments on Term::Readline

2011-10-29 Thread Daniel Patrick Sullivan
Hi, I have (another) question about resetting the ornaments on a Term::Readline instance. I can't seem to get the syntax correct on how to accomplish this. Basically I want to get rid of the underline in the terminal prompt; I am configuring the new terminal like this "my $terminal = Term::ReadL

Re: Question regarding file stat setgid determination.

2011-10-29 Thread Anneli Cuss
Two comments: 02000 is 1024 in base 8; the leading 0 indicates octal much as leading 0x indicates hex. $a & $b returns the number with bits in common, so we expect 1024 & 1024 to equal 1024 (or 02000 & 02755, the latter being a realistic file mode; note these are in octal). This will be true in b

Question regarding file stat setgid determination.

2011-10-29 Thread Daniel Patrick Sullivan
HI, All, I am banging my head against the wall on an issue that I think would be pretty simple; I'm trying to determine whether or not the current running script has the SetGUID file mode set on it and it is proving much more challenging than I had originally anticipated. I am using OSX version 1