Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-21 Thread The Wanderer
On 2025-07-21 at 08:04, Greg Wooledge wrote: > On Mon, Jul 21, 2025 at 13:37:33 +0200, Michael wrote: > >> iirc, i think i have read in your wiki to NOT have variable names >> with leading underscores... > > If you restrict yourself to never using variable names beginning with > _ in normal situ

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-21 Thread Greg Wooledge
On Mon, Jul 21, 2025 at 13:37:33 +0200, Michael wrote: > iirc, i think i have read in your wiki to NOT have variable names with > leading underscores... If you restrict yourself to never using variable names beginning with _ in normal situations, then that gives you the opportunity to use it as a

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-21 Thread Michael
first: thank you for your valuable input! On Friday, July 18, 2025 1:30:27 PM CEST, Greg Wooledge wrote: On Fri, Jul 18, 2025 at 12:34:36 +0200, Michael wrote: On Friday, July 18, 2025 12:52:03 AM CEST, Greg Wooledge wrote: ... Bash 4.3 and higher have nameref variables, [...] although i wa

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-20 Thread David Wright
ors which > > I can't make sense of whatsoever with only two values: [ … ] > Not sure about posix but: > > date -u -d '1/1/70 12:08' '+%s' > 43680 That illustrates the rule that makes this method fail: a time-of-day (which is what 12:08 is in this

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-20 Thread Max Nikulin
On 20/07/2025 09:45, Greg Wooledge wrote: On Sun, Jul 20, 2025 at 09:02:37 +0700, Max Nikulin wrote: I have no idea to which degree the following is portable: strip_zeroes() { zeroes="${1%%[!0]*}"; printf '%s\n' "${1#"$zeroes"}"; } That's POS

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-20 Thread Jeffrey Walton
On Sun, Jul 20, 2025 at 2:34 AM Michael Paoli wrote: > > [...] > And sed and awk are POSIX, so using those is POSIX, so long as we > restrict ourselves to specified POSIX functionality. As crazy as this is going to sound... you can't count on all POSIX tools to be presen

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-19 Thread Michael Paoli
rlier specification. Also, the earlier context, YouTube video durations, also not likely we'll be dealing with > 99H 59M 59S video durations. And quick search seems to suggest YouTube currently has a max. video duration of 12 hours. And sed and awk are POSIX, so using those is POSIX,

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-19 Thread Greg Wooledge
On Sun, Jul 20, 2025 at 09:02:37 +0700, Max Nikulin wrote: > I have no idea to which degree the following is portable: > > strip_zeroes() { zeroes="${1%%[!0]*}"; printf '%s\n' "${1#"$zeroes"}"; } That's POSIX compliant. It's very si

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-19 Thread Max Nikulin
On 19/07/2025 19:26, Greg Wooledge wrote: On Sat, Jul 19, 2025 at 10:14:49 +0700, Max Nikulin wrote: A mathematical trick may be used instead even if external processes like sed are considered as undesired overhead for i in 0 09 008 59 080; do i1=1$i; i2=2$i; echo "$i = $((2*i1 - i2))"; done 0

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-19 Thread Tim Woodall
"// __ \$_SEKNDS: |${_SEKNDS}|" fi bash: _SEKNDS + 08: value too great for base (error token is "08") ~ yet, it works for _HHMMSS={"3:54:14", "20:01", "20:00", "19:07", "19:06", "19:05", ... } and all other similar conversion?! lbrtchx Not sure about posix but: date -u -d '1/1/70 12:08' '+%s' 43680

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-19 Thread Greg Wooledge
On Sat, Jul 19, 2025 at 10:14:49 +0700, Max Nikulin wrote: > A mathematical trick may be used instead even if external processes like sed > are considered as undesired overhead > > for i in 0 09 008 59 080; do i1=1$i; i2=2$i; echo "$i = $((2*i1 - i2))"; > done > > 0 = 0 > 09 = 9 > 008 = 8 > 59 =

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael Paoli
echo \ $(( $( d12='\([0-9]\{1,2\}\)' echo 09:10:11 | sed -e ' s/^/ / s/:/ /g s/ 0*\([0-9]\)/ \1/g '" s/^ $d12 $d12 $d12"'$/3600 * \1 + 60 * \2 + \3/ ' ) )) On Fri, Jul 18, 2025 at 7:09 PM Greg Wooledge wrote: > > On Fri, Jul 18, 2025 at 18:59:06 -0700, Michael Paoli

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Max Nikulin
account earlier posts, I think that overall complexity of the problem is enough to switch from shell to a better programming language, e.g. python. [...] s=${m#*:} s=${s##+(0)} [...] This is one way to tackle the problem. It's *almost* POSIX compliant; the bashisms here

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Greg Wooledge
On Fri, Jul 18, 2025 at 18:59:06 -0700, Michael Paoli wrote: > echo $(( $(echo 07:08:09 | sed -e 's/^0*\([0-9]\)/3600 * \1 + > /;s/:0*\([0-9]:\)/60 * \1/;s/:0*\([0-9]\)$/ + \1/;') )) This one is missing some * operators. You're only capturing a single digit in each segment, but there could be two

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael Paoli
echo $(( $(echo 07:08:09 | sed -e 's/^0*\([0-9]\)/3600 * \1 + /;s/:0*\([0-9]:\)/60 * \1/;s/:0*\([0-9]\)$/ + \1/;') )) On Fri, Jul 18, 2025 at 1:31 PM Greg Wooledge wrote: > > On Fri, Jul 18, 2025 at 13:16:17 -0700, Michael Paoli wrote: > > E.g.: > > printf 01:02:03 | (IFS=: read h m s; printf '%s

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Greg Wooledge
On Fri, Jul 18, 2025 at 13:16:17 -0700, Michael Paoli wrote: > E.g.: > printf 01:02:03 | (IFS=: read h m s; printf '%s\n' $(( $((h * 3600)) + > $((m * 60)) + $s ))) You still need to strip leading zeroes. hobbit:~$ echo 01:08:09 | (IFS=: read h m s; printf '%s\n' $(( $((h * 3600)) + > $((m * 60))

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael Paoli
E.g.: printf 01:02:03 | (IFS=: read h m s; printf '%s\n' $(( $((h * 3600)) + $((m * 60)) + $s ))) On Thu, Jul 17, 2025 at 2:39 PM wrote: > > Video durations are formatted in youtube's .info.json files as "HH:MM:SS"; > so, I went monkey and did the conversion myself, but I got two errors which I

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Greg Wooledge
On Fri, Jul 18, 2025 at 12:34:36 +0200, Michael wrote: > On Friday, July 18, 2025 12:52:03 AM CEST, Greg Wooledge wrote: > > As far as the code goes, I'd rather start from scratch. > > just out of curiosity: > > i don't like fix global return values (like $r in your code). i'd rather > give the f

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread rhkramer
On Thursday, July 17, 2025 06:52:03 PM Greg Wooledge wrote: > If you don't want to see an explanation of the function, you can stop > reading here. The rest is just tutorial. I'm not the OP, but tutorial(s) good -- thanks! I assume it is (or will be) on your (Greg's wiki) -- if so, I'll probably

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael
ntf -v "$1" "%s..." "..." ... } myfunc "my_result" ... echo "$my_result" ==== an yes, i don't care about POSIX compliance. greetings...

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread tomas
On Thu, Jul 17, 2025 at 07:56:39PM -0400, Dan Purgert wrote: > On Jul 18, 2025, lbrt...@tutamail.com wrote: > > OK, it makes some more sense now. The range of digits in the octal > > system is from 0 to 7, so it would complain with "08" and "09" (but > > not with "10" which would then be "8" in oct

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread David Wright
On Thu 17 Jul 2025 at 23:39:02 (+0200), lbrt...@tutamail.com wrote: > Video durations are formatted in youtube's .info.json files as "HH:MM:SS"; ↑ On Fri 18 Jul 2025 at 01:21:08 (+0200), lbrt...@tutamail.com wrote: > OK, the Math is right, but the assumptions made by date aren't sm

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread Dan Purgert
On Jul 18, 2025, lbrt...@tutamail.com wrote: > OK, it makes some more sense now. The range of digits in the octal > system is from 0 to 7, so it would complain with "08" and "09" (but > not with "10" which would then be "8" in octal), but why would command > line utilities assume you are encoding n

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread Greg Wooledge
On Fri, Jul 18, 2025 at 00:31:17 +0100, Alain D D Williams wrote: > On Fri, Jul 18, 2025 at 01:21:08AM +0200, lbrt...@tutamail.com wrote: > > OK, the Math is right, but the assumptions made by date aren't smart. I > > "overtested" your one liner with the kinds of input you would grab using jq > >

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread Alain D D Williams
On Fri, Jul 18, 2025 at 01:21:08AM +0200, lbrt...@tutamail.com wrote: > OK, the Math is right, but the assumptions made by date aren't smart. I > "overtested" your one liner with the kinds of input you would grab using jq > from youtube .info.json files > and to my amazement, when you only have

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread lbrtchx
OK, the Math is right, but the assumptions made by date aren't smart. I "overtested" your one liner with the kinds of input you would grab using jq from youtube .info.json files and to my amazement, when you only have two semicolon separated values, the bash date utility assumes the first chunk

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread Greg Wooledge
quot;${_HHMMSS}" | tr ':' '\n')); > _SEKNDS_ARL=${#_SEKNDS_AR[@]} Your Subject header is asking for "POSIX compliant" but you're using commands here that aren't POSIX compliant. echo with options isn't compliant, and array variables aren't ei

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread Alain D D Williams
On Fri, Jul 18, 2025 at 12:27:04AM +0200, lbrt...@tutamail.com wrote: > _HHMMSS="19:09" means 19*60 + 9 = 1149 seconds > _HHMMSS="19:08" means 19*60 + 8 = 1148 seconds So: 19:09 is 19 minutes and 9 seconds ? It is not HHMMSS for that you should have _HHMMSS="00:19:09" I found a bug in my solutio

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread lbrtchx
_HHMMSS="19:09" means 19*60 + 9 = 1149 seconds _HHMMSS="19:08" means 19*60 + 8 = 1148 seconds so, it seems date is also somehow parsing that value as octal even though it is being formatted in a date friendly way. is there a way to exactly specify the encoding of the input for date?

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread lbrtchx
OK, it makes some more sense now. The range of digits in the octal system is from 0 to 7, so it would complain with "08" and "09" (but not with "10" which would then be "8" in octal), but why would command line utilities assume you are encoding numeric values as octal? Now I notice many people h

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread Alain D D Williams
On Thu, Jul 17, 2025 at 11:39:02PM +0200, lbrt...@tutamail.com wrote: > Video durations are formatted in youtube's .info.json files as "HH:MM:SS"; > so, I went monkey and did the conversion myself, but I got two errors which I > can't make sense of whatsoever with only two values: _HHMMSS="19:09

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread Dan Purgert
On Jul 17, 2025, lbrt...@tutamail.com wrote: > Video durations are formatted in youtube's .info.json files as "HH:MM:SS"; > so, I went monkey and did the conversion myself, but I got two errors which I > can't make sense of whatsoever with only two values: > > _HHMMSS="19:09" > _HHMMSS="19:08" >

Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-17 Thread lbrtchx
Video durations are formatted in youtube's .info.json files as "HH:MM:SS"; so, I went monkey and did the conversion myself, but I got two errors which I can't make sense of whatsoever with only two values: _HHMMSS="19:09" _HHMMSS="19:08" IFS=$(echo -en "\n\b"); _SEKNDS_AR=($(echo "${_HHMMSS}" |

Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread David Wright
On Fri 25 Sep 2020 at 12:28:31 (+), Andy Smith wrote: > On Fri, Sep 25, 2020 at 07:49:19AM -0400, Greg Wooledge wrote: > > On Fri, Sep 25, 2020 at 07:44:25AM +, Andy Smith wrote: > > > "hostid" tends to return a hexadecimal representation of the first > > > IPv4 address (but isn't guarantee

Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Andy Smith
Hello, On Fri, Sep 25, 2020 at 07:49:19AM -0400, Greg Wooledge wrote: > On Fri, Sep 25, 2020 at 07:44:25AM +, Andy Smith wrote: > > "hostid" tends to return a hexadecimal representation of the first > > IPv4 address (but isn't guaranteed to). > > unicorn:~$ hostid > 007f0101 > > Doesn't look

Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Greg Wooledge
On Fri, Sep 25, 2020 at 07:44:25AM +, Andy Smith wrote: > "hostid" tends to return a hexadecimal representation of the first > IPv4 address (but isn't guaranteed to). unicorn:~$ hostid 007f0101 Doesn't look very useful. That's just 127.0.1.1 in a 16-bit little endian format. > On a systemd

Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Andy Smith
Hello, On Thu, Sep 24, 2020 at 08:49:07AM -0600, Charles Curley wrote: > On Thu, 24 Sep 2020 10:38:55 -0400 > Greg Wooledge wrote: > > So you're just doing "sleep 1" every time. > > Ah, thank you. Yup. Which is weird, because it worked when I first > wrote that many years ago. In cron scripts w

Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-16 Thread David Wright
On Sat 12 Sep 2020 at 07:41:19 (-0500), Nate Bargmann wrote: > * On 2020 12 Sep 02:06 -0500, Lone Learner wrote: > > POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the > > commands "bc" and "ed" to be part of POSIX. > > > > Yet,

Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Nate Bargmann
* On 2020 12 Sep 02:06 -0500, Lone Learner wrote: > POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the > commands "bc" and "ed" to be part of POSIX. > > Yet, in a brand new Debian installation (version 10 for example), > these commands are m

Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Alex Mestiashvili
On 9/12/20 9:05 AM, Lone Learner wrote: > POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the > commands "bc" and "ed" to be part of POSIX. > > Yet, in a brand new Debian installation (version 10 for example), > these commands are missi

Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Fabrice Bauzac
12 sept. 2020 09:06:19 Lone Learner : > Why does Debian not include these [posix] commands by default? > I guess many debian users don't care about these commands, so it would be rude to impose something wanted by only a part of the users.  And there's the case of tiny embedde

Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Lone Learner
POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the commands "bc" and "ed" to be part of POSIX. Yet, in a brand new Debian installation (version 10 for example), these commands are missing by default: $ bc bash: bc: command not found $ ed bash: ed: command

Re: POSIX compliant sed making newline character

2020-08-22 Thread john doe
On 8/22/2020 6:33 PM, Andrei POPESCU wrote: On Vi, 21 aug 20, 21:06:05, john doe wrote: When I can not get the command I want, I break it down to the simplest command as possible then I build from there to the command I realy want. Have you considered that solution(s) found might not be usabl

Re: POSIX compliant sed making newline character

2020-08-22 Thread Andrei POPESCU
On Vi, 21 aug 20, 21:06:05, john doe wrote: > > When I can not get the command I want, I break it down to the simplest > command as possible then I build from there to the command I realy want. Have you considered that solution(s) found might not be usable in the bigger context, basically wastin

Re: POSIX compliant sed making newline character

2020-08-21 Thread john doe
On 8/21/2020 9:00 PM, Greg Wooledge wrote: On Fri, Aug 21, 2020 at 08:51:44PM +0200, john doe wrote: Okay, it uses the same syntax as for a subshell '$()'. No, one of them is $'' and the other is $(). They have nothing in common. One of them is a form of quoting. It acts just like '' except

Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
On Fri, Aug 21, 2020 at 08:51:44PM +0200, john doe wrote: > Okay, it uses the same syntax as for a subshell '$()'. No, one of them is $'' and the other is $(). They have nothing in common. One of them is a form of quoting. It acts just like '' except that it performs various backslash expansion

Re: POSIX compliant sed making newline character

2020-08-21 Thread john doe
On 8/21/2020 8:37 PM, Greg Wooledge wrote: On Fri, Aug 21, 2020 at 02:35:35PM -0400, Greg Wooledge wrote: No. Use $'...' instead of '...'. sed '/line1/{N;N;a line-to-add\n}' input-file Crap. Of course I meant to write sed $'/line1/{N;N;a line-to-add\n}' input-file Okay, it uses the same

Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
On Fri, Aug 21, 2020 at 02:35:35PM -0400, Greg Wooledge wrote: > No. Use $'...' instead of '...'. > > sed '/line1/{N;N;a line-to-add\n}' input-file Crap. Of course I meant to write sed $'/line1/{N;N;a line-to-add\n}' input-file

Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
ter key. That's portable to every sh family shell. > > Actually, I do not know, that is why I'm asking in here! :) The Subject: header is a bit ambiguous, because you mention "POSIX compliant sed", but you're asking on debian-user, where sed is not necessarily PO

Re: POSIX compliant sed making newline character

2020-08-21 Thread john doe
On 8/21/2020 7:51 PM, Greg Wooledge wrote: On Fri, Aug 21, 2020 at 07:49:07PM +0200, john doe wrote: Hello all, I'm trying to use the command provided at (1): $ sed '/pattern{N;N;a try\d10}' input-file sed: -e expression #1, char 0: unmatched `{' Are you missing a second / character after th

Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
On Fri, Aug 21, 2020 at 07:49:07PM +0200, john doe wrote: > Hello all, > > I'm trying to use the command provided at (1): > > $ sed '/pattern{N;N;a try\d10}' input-file > sed: -e expression #1, char 0: unmatched `{' Are you missing a second / character after the pattern? Why are you obfuscating

POSIX compliant sed making newline character

2020-08-21 Thread john doe
above it does not. What am I missing? The idea is to be able to append a line two lines after a match while being POSIX compliant. 1) https://stackoverflow.com/questions/30099736/sed-insert-line-after-x-lines-after-match -- John Doe

Re: Archiver supporting POSIX ACLs, file caps and xattrs?

2012-06-07 Thread Camaleón
On Tue, 05 Jun 2012 22:30:02 +0400, Konstantin Khomoutov wrote: > I'd like to dump an ext3 filesystem which might uses xattrs and might > use file capabilities. I'd very much like to pipe its output to another > machine (via netcat or some other means) which frames out fsarchiver [1] > which requ

Archiver supporting POSIX ACLs, file caps and xattrs?

2012-06-05 Thread Konstantin Khomoutov
I'd like to dump an ext3 filesystem which might uses xattrs and might use file capabilities. I'd very much like to pipe its output to another machine (via netcat or some other means) which frames out fsarchiver [1] which requires lseeks() on the file it generates. So I'd like to use something like

Re: LDAP and POSIX groups

2008-11-04 Thread Ansgar Burchardt
Alex Samad <[EMAIL PROTECTED]> writes: > plus I started to use libnss-ldapd, found it a bit more stable I gave libnss-ldapd a try and it's now working fine without changes on the configuration. Thanks. Ansgar -- PGP: 1024D/595FAD19 739E 2D09 0969 BEA9 9797 B055 DDB0 2FF7 595F AD19 -- To U

Re: LDAP and POSIX groups

2008-11-03 Thread Alex Samad
On Mon, Nov 03, 2008 at 03:19:11PM +0100, frank wrote: > On Sun, 2008-11-02 at 15:48 +0100, Ansgar Burchardt wrote: > > > > I'm having problems setting up LDAP with POSIX groups. I can see groups > > and members with "getent group mygroup", but am not a memb

Re: LDAP and POSIX groups

2008-11-03 Thread Ansgar Burchardt
Hi, frank <[EMAIL PROTECTED]> writes: > On Sun, 2008-11-02 at 15:48 +0100, Ansgar Burchardt wrote: >> I'm having problems setting up LDAP with POSIX groups. I can see groups >> and members with "getent group mygroup", but am not a member after >> log

Re: LDAP and POSIX groups

2008-11-03 Thread frank
On Sun, 2008-11-02 at 15:48 +0100, Ansgar Burchardt wrote: > > I'm having problems setting up LDAP with POSIX groups. I can see groups > and members with "getent group mygroup", but am not a member after > logging in. > > To configure LDAP, I added > >

LDAP and POSIX groups

2008-11-02 Thread Ansgar Burchardt
Hi, I'm having problems setting up LDAP with POSIX groups. I can see groups and members with "getent group mygroup", but am not a member after logging in. To configure LDAP, I added nss_base_group ou=Group,dc=example,dc=com?sub to /etc/libnss-ldap.conf and pam_ldap.conf.

select() in sh (POSIX is crap, but something to have anyway :)

2007-09-25 Thread Oleg Verych
07-08-2007, Vincent Lefevre: [] > Not every system has bash. If this is for compatibility, you can learn > POSIX sh, but e.g. Solaris /bin/sh is not a POSIX sh. And Windows will have `sh` soon, called "Microsoft Suxe Shell" (C) Novell. > For this reason and because POSIX sh is

Re: Shouldn't pax (required by POSIX) have the required priority?

2007-01-27 Thread Roberto C. Sanchez
On Sat, Jan 27, 2007 at 02:21:36AM +0100, Vincent Lefevre wrote: > The pax package is optional. But as the pax utility is required by > POSIX[*], shouldn't this package be required? > > [*] http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html > Why? RPM is also

Shouldn't pax (required by POSIX) have the required priority?

2007-01-26 Thread Vincent Lefevre
The pax package is optional. But as the pax utility is required by POSIX[*], shouldn't this package be required? [*] http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validat

RE: POSIX regex packahe

2007-01-24 Thread Kevin Ross
> > I'm surprised that libc6-dev is only a "recommends" and not > > a "depends" for gcc. > > Gcc is quite useful without libc6-dev. For compiling a kernel, for > example. Good point. > > To build slapd, you may also need (according to apt-build > info slapd) > > 'apt-get build-dep slapd' wil

Re: POSIX regex packahe

2007-01-24 Thread John Hasler
Kevin Ross writes: > I'm surprised that libc6-dev is only a "recommends" and not a "depends" > for gcc. Gcc is quite useful without libc6-dev. For compiling a kernel, for example. > To build slapd, you may also need (according to apt-build info slapd) 'apt-get build-dep slapd' will install all

RE: POSIX regex packahe

2007-01-24 Thread Kevin Ross
> I need POSIX regex to compile openldap-2.3.28. Does anyone know which > package has it? libc6-dev I'm surprised that libc6-dev is only a "recommends" and not a "depends" for gcc. But whatever. To build slapd, you may also need (according to apt-build inf

POSIX regex packahe

2007-01-24 Thread supercroc1974
Hi, I need POSIX regex to compile openldap-2.3.28. Does anyone know which package has it? Thanks, Andre -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

POSIX ACLs on Debian

2006-06-30 Thread Jean-Sebastien Pilon
Hi all, I would like to implement POSIX ACLs on a Debian server. The partition is formatted with ReiserFS. I am using the default 2.4 kernel in 3.1r2 (2.4.27-2-386) I understand that POSIX ACLs were introduced with 2.6 kernels. I see that Debian most likely patched the 2.4 kernel for POSIX

Re: Posix and SysV message queues

2006-05-10 Thread John L Fjellstad
ckage manpages (which > manpages-posix recommends you install :-). Well, google showed me the actual manpage (once I knew the name), and it's exactly what I was looking for. Thanks alot. -- John L. Fjellstad web: http://www.fjellstad.org/ Quis custodiet ipsos custodes -- T

Re: Posix and SysV message queues

2006-05-10 Thread Magnus Therning
ev/mqueue? > >Doing a man on mq_overview tells me there is no such man page. man on >mqueue.h and mq_open doesn't mention a mq_overview man page. >There is no /dev/mqueue on my filesystem (using udev). > >I have the posix man pages installed (both manpages-posix and >manp

Re: Posix and SysV message queues

2006-05-09 Thread John L Fjellstad
eue.h and mq_open doesn't mention a mq_overview man page. There is no /dev/mqueue on my filesystem (using udev). I have the posix man pages installed (both manpages-posix and manpages-posix-dev), so I think I should have everything installed (in regards to man pages) I appreciate the help. -

Re: Posix and SysV message queues

2006-05-09 Thread Magnus Therning
On Tue, May 09, 2006 at 12:13:19AM -0700, John L Fjellstad wrote: >I'm trying to write a program using posix and sysV message queues. For >sysV, there is a utility, ipcs and icprm that lets me inspect and >remove messages from the queue. Anyone know if there is a similar >util

Posix and SysV message queues

2006-05-09 Thread John L Fjellstad
I'm trying to write a program using posix and sysV message queues. For sysV, there is a utility, ipcs and icprm that lets me inspect and remove messages from the queue. Anyone know if there is a similar utility for posix msg queues? -- John L. Fjellstad web: http://www.fjellsta

SOLVED Re: Sid: How to clear locales = posix

2006-05-04 Thread Curt Howland
o "en_US", and the alphabetic order is followed rather than being separated out by upper-lower case. Curt- On Thursday 04 May 2006 11:46, Curt Howland was heard to say: > Ok, I'm stuck with everything equalling "POSIX". I looked through > the archives and cann

Sid: How to clear locales = posix

2006-05-04 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, I'm stuck with everything equalling "POSIX". I looked through the archives and cannot find how to clear the problem. I recall it was something like "delete this file and reconfigure locales", but as I said I cannot fin

Requesting POSIX/SUS features from glibc

2005-10-31 Thread Paulo M C Aragão
Hi, Feature test macro _POSIX_SOURCE refers to which edition of POSIX.1 ? And _XOPEN_SOURCE refers to which SUS version ? I've got installed libc6 and glibc-doc both 2.3.5-7. I've carefully read the documentation from these packages, but couldn't find clear, unambiguous answer

Re: Stumped with a Posix/Perl Question

2004-04-01 Thread Ken Irving
On Thu, Apr 01, 2004 at 02:10:46PM -0800, William Ballard wrote: > Given: > > A - 1 > A - 2 > B - 1 > B - 2 > > what's the simplest command or perl script to print it as: > > A (1, 2) > B (1, 2) > > or something equivalent. Hmm, one of the zillions of ways of doing something equivalent, with t

Re: Stumped with a Posix/Perl Question

2004-04-01 Thread Thorsten Haude
Moin, * William Ballard wrote (2004-04-02 00:10): >Given: > >A - 1 >A - 2 >B - 1 >B - 2 > >what's the simplest command or perl script to print it as: > >A (1, 2) >B (1, 2) > >or something equivalent. Is that an array? Depending on the size and whether it's fixed I would use either printf or somet

Stumped with a Posix/Perl Question

2004-04-01 Thread William Ballard
Given: A - 1 A - 2 B - 1 B - 2 what's the simplest command or perl script to print it as: A (1, 2) B (1, 2) or something equivalent. Thanks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

POSIX spec (was: Linux permissions and which(1))

2003-09-06 Thread moseley
Ok, I'm seeing different behavior with differnet shells and different operating systems. I've tried looking for the POSIX spec to see the correct behavior but not having much luck with my googling skills today. Anyone know where to look up the POSIX spec on how a shell is suppose

Runaway processes-Native Posix threading Library-Old linux threads

2003-06-12 Thread SRIKANTH NS
Linux For U Magazine (www.linuxforu.com , a magazine for linux users in India ) by KT Ligesh in which a paragraph about old linux threads was mentioned. It was mentioned that it can take about 15 minutes for that old threading to start &stop 1,00,000 threads. With new Native Posix threading Library (NPTL) an

Re: POSIX shell

2002-11-10 Thread Bob Proulx
Stephen Gran <[EMAIL PROTECTED]> [2002-11-10 19:41:08 -0500]: > This one time, at band camp, Bruce Park said: > > What exactly is a POSIX shell? > It is a shell that complies with the Portable Operating System Interface > - basically, system calls, expected behaviors a

Re: POSIX shell

2002-11-10 Thread Stephen Gran
This one time, at band camp, Bruce Park said: > What exactly is a POSIX shell? > > bp It is a shell that complies with the Portable Operating System Interface - basically, system calls, expected behaviors and that sort of thing. Makes it easier for programmers to write cross-platform

POSIX shell

2002-11-10 Thread Bruce Park
What exactly is a POSIX shell? bp _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubs

Enabling thread concurrency in Posix Threads.

2002-06-18 Thread Shivakumar Patil
Hi There, I have Potato 2.2.19 kernel and the following packages installed libc6-dev 2.2.5-4, libpth-dev 1.4.1-2 and glibc-doc 2.2.5-4. I was trying to understand the concepts of threads on linux. I executed a program from Stevens book and is attached to this mail. On the command

POSIX

2001-09-09 Thread Wendell Cochran
[ "Michael P. Soulier" ] Re: mailq [ Davor Balder <[EMAIL PROTECTED] ] Re: dpkg-scanpackages on an official [ Martin F Krafft <[EMAIL PROTECTED] ] Re: newbe-ish question - POSIX ? [ Davor Balder <[EMAIL PROTECTED] ] print

Re: newbe-ish question - POSIX ?

2001-09-09 Thread Davor Balder
On Sun, Sep 09, 2001 at 06:08:48PM +0530, [EMAIL PROTECTED] wrote: > What is POSIX and what does it entail ? > > Thanks (Sorry for the stupid question) > SK > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". T

newbe-ish question - POSIX ?

2001-09-09 Thread shyamk
What is POSIX and what does it entail ? Thanks (Sorry for the stupid question) SK

Antivirus para proteger el correo electrónico Posix

2001-08-23 Thread Carlos Del Prado
Hola. Cual es el mejor antivirus para su distribución, es para el servidor de correo. Gracias.

POSIX tar archive

2000-02-20 Thread lbianca
a friend asked me to extract a text file from a floppy "unix formatted". I can see this file looking with mc (is a little data base of pc spare parts) in /dev/fd0, but i can't mount the floppy: no vfat, no ext2, no sysv. The command " file /tmp/foo " produces this ou

POSIX arguments

1998-09-15 Thread Ole J. Tetlie
Is there any electronic information available that describes what a getopt library (no, not another one in C :-) must allow and disallow to be POSIX compliant? -- .elOle.

Re: posix procs: where is it gone ?

1998-06-24 Thread Torsten Hilbrich
On: Tue, 23 Jun 1998 17:07:42 +0200 (METDST) Stelios Parnassidis writes: > > Is the old (?) ps, the one with the PS_PEERSONALITY setting, to > find under debian ? > > I'm running/poerting a huge package related to my job, which rely > very heavy on the posix

posix procs: where is it gone ?

1998-06-23 Thread Stelios Parnassidis
Is the old (?) ps, the one with the PS_PEERSONALITY setting, to find under debian ? I'm running/poerting a huge package related to my job, which rely very heavy on the posix conform switches of 'ps'. One of a sudden sometime ago nothing goes anymore because in many cases

Re: What happened to the ps POSIX options

1998-02-23 Thread Scott Ellis
On 23 Feb 1998, Tommi Kaariainen wrote: > I updated procps (+ other stuff) to the newest version(s) in the Debian > mirror I use (sunsite.auc.dk) and found out that the (much more useful) > POSIX-style ps options no longer work. Why were they removed? Debian fell back to use the u

Re: What happened to the ps POSIX options

1998-02-23 Thread Tommi Kaariainen
Tommi Kaariainen <[EMAIL PROTECTED]> writes: > I updated procps (+ other stuff) to the newest version(s) in the Debian > mirror I use (sunsite.auc.dk) and found out that the (much more useful) > POSIX-style ps options no longer work. Why were they removed? > > /Tommi Kääri

What happened to the ps POSIX options

1998-02-23 Thread Tommi Kaariainen
I updated procps (+ other stuff) to the newest version(s) in the Debian mirror I use (sunsite.auc.dk) and found out that the (much more useful) POSIX-style ps options no longer work. Why were they removed? /Tommi Kääriäinen/ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word

Re: IEEE POSIX Standards and Linux

1997-09-26 Thread David Wright
On 26 Sep 1997, TENCC01.LEWIS01 wrote: > To be an actual factual posix system you have to pass a test suite that > requires > a bunch of money. If the test suite is ever put in public domain, linux may > get > a posix rating. These are rather old postings but I think they

Re: IEEE POSIX Standards and Linux

1997-09-26 Thread TENCC01.LEWIS01
I can't say debian is "posix conformant". However, I have been developing c code on hpux, dec osf1, and aix for some years now. Linux is as good as any of those. When it comes to supporting old standards like bsd, linux is probably a bit better. To be an actual factual posix

Re: IEEE POSIX Standards and Linux

1997-09-26 Thread jdassen
On Sep 25, Mario de Mello B. Neto wrote > I am a Linux user and I need information regarding linux (debian,RedHat, > Slackware) and its conformance to IEEE POSIX standards, specially those > that Microsoft Windows NT is not compliant. I'm nowhere near a standards expert, but

Re: IEEE POSIX Standards and Linux

1997-09-26 Thread Britton
; Dear Sirs, > > I am a Linux user and I need information regarding linux (debian,RedHat, > Slackware) and its conformance to IEEE POSIX standards, specially those > that Microsoft Windows NT is not compliant. > > Best regards, > > Mario de Mello B. Neto. > >

IEEE POSIX Standards and Linux

1997-09-26 Thread Mario de Mello B. Neto
Dear Sirs, I am a Linux user and I need information regarding linux (debian,RedHat, Slackware) and its conformance to IEEE POSIX standards, specially those that Microsoft Windows NT is not compliant. Best regards, Mario de Mello B. Neto. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e

  1   2   >