RE: POSIX

2012-03-21 Thread Wagner, David --- Sr Programmer Analyst --- CFS
>-Original Message- >From: Chris Stinemetz [mailto:chrisstinem...@gmail.com] >Sent: Wednesday, March 21, 2012 15:14 >To: beginners@perl.org >Subject: POSIX > >Is there a way to take localtime less two hours? So there is an offset of >2? > >example line: >

POSIX

2012-03-21 Thread Chris Stinemetz
Is there a way to take localtime less two hours? So there is an offset of 2? example line: my $file = sprintf("$dirPath%s00.HCSFMS023",strftime("%Y%m%d%H",localtime )); Thank you, Chris -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@p

Re: Strange behavior with POSIX qw(fpathconf)

2010-03-31 Thread Bob goolsby
Post this on Perl Monks (http://perlmonks.org/) for non-beginner feed back, Old Gray Bear On Tue, Mar 30, 2010 at 2:38 PM, Paul Smith wrote: > I have a feeling this is not a "beginners" question (I've been hacking > in Perl for many years and UNIX systems for far longer) but it seems my > choice

Strange behavior with POSIX qw(fpathconf)

2010-03-31 Thread Paul Smith
I have a feeling this is not a "beginners" question (I've been hacking in Perl for many years and UNIX systems for far longer) but it seems my choices are this list, or perl5-porters which also doesn't seem right. Isn't there any list where non-beginner questions can be asked? Anyway. I have a Pe

Re: Problems in POSIX

2009-11-27 Thread C.DeRykus
On Nov 25, 7:44 am, raheel.has...@gmail.com (Raheel Hassan) wrote: > > I am unable to understand the use of these statements in the program, I have > read about POSIX in the CPAN but still things are not clear to me. > > use POSIX ":sys_wait_h";  #What sys_wait_h does

Problems in POSIX

2009-11-25 Thread Raheel Hassan
Hello, I am unable to understand the use of these statements in the program, I have read about POSIX in the CPAN but still things are not clear to me. use POSIX ":sys_wait_h"; #What sys_wait_h does? waitpid($_,&WNOHANG) # what is WNOHANG? my $message = $object -> re

problem with module install about Shell::POSIX::Select

2008-07-29 Thread Jiancong
Hi all: When I install the “Shell-POSIX-Select” module into my system, I got the following error message from screen. After I searched on internet, I found any useful messages to resolve it. Could you tell me how to resolve it or where to find some useful messages. Thanks a lot

Re: posix shared memory

2008-03-13 Thread Jenda Krynicky
From: "Nei Kai" <[EMAIL PROTECTED]> > 2008/3/11, Tom Phoenix <[EMAIL PROTECTED]>: > > On Mon, Mar 10, 2008 at 5:44 PM, Nei Kai <[EMAIL PROTECTED]> wrote: > > > > > I found a mmap module in CPAN, called Sys::Mmap, whose > > > version is V0.13 and is not updated since 2002. > > > So I am not s

Re: posix shared memory

2008-03-10 Thread Nei Kai
ot sure if it is supposed to be used nowadays. > > > What happened when you tried it? > > Actually I didn't try it, since I am not sure it is worth to spend time to test it in advance. Anyway, V0.13 doesn't sound like a fixed edition that should be proposed to the manager.

Re: posix shared memory

2008-03-10 Thread Tom Phoenix
d why doesn't perl try to give an interface for posix shared > memory after so many years? Maybe it's because you haven't contributed your patch to the core yet. :-) Or maybe it's because the people who need that feature already find it somewhere, somewhere in the vastnes

posix shared memory

2008-03-10 Thread Nei Kai
hi, guys I have been searched for posix shared memory using mmap or something likewise in perl for a while. My version of perl is 5.8.7. It seems perl only supports SysV shared memory model, but the embedded system I am supposed to use does not support SysV. I found a mmap module in CPAN, called

Re: overriding posix::uname

2007-05-22 Thread Jeff Pang
David Moreno Garza 写道: Funny thing: Jeff Pang wrote: $ perl -e 'print $^O' linux User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) Just trolling :-) I'm confused,what do you mean? -- http://home.arcor.de/jeffpang/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: overriding posix::uname

2007-05-22 Thread David Moreno Garza
Funny thing: Jeff Pang wrote: > $ perl -e 'print $^O' > linux User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) Just trolling :-) -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ Saca tus alas y empieza a volar. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: overriding posix::uname

2007-05-18 Thread Jeff Pang
Ken Foskey 写道: > sub is_dev > { > my ($server, $host) = POSIX::uname(); > > if ($host eq "aixmbk10") { > return 1; > > I want to test this module in a test script. SO I want to code the > various servers and check that it works. >

overriding posix::uname

2007-05-18 Thread Ken Foskey
sub is_dev { my ($server, $host) = POSIX::uname(); if ($host eq "aixmbk10") { return 1; I want to test this module in a test script. SO I want to code the various servers and check that it works. Is there a way to override the call to POSIX::uname

Re: POSIX valid_user.al

2005-02-02 Thread ds10025
I maybe missing something here. I try to rpmbuild authen-smb.0.90.src.rpm That fails to generate rpm file. I did try to re-recompile authen-smb.0.91.tar.gz It complies OK no errors. It install Smb files. But, it do not generate valid_user.al file. Do I need ti set a flag to create the valid_user.al

Re: POSIX valid_user.al

2005-02-02 Thread Roman Vašíček
Probably wrong/broken installation of Authen::Smb. Valid_User is defined in file smbval/valid.c which is part of Authen::Smb distribution. Try to recompile/reinstall Authen::Smb again. Roman On Wed, Feb 02, 2005 at 12:36:06PM +, [EMAIL PROTECTED] wrote: > Morning > > > I'm trying to run

POSIX valid_user.al

2005-02-02 Thread ds10025
Morning I'm trying to run Authen:Smb After spending some time debugging, it returns an error can not locate valid_user.al valid_user() is a function call from within Authen::Smb. Which package/module contain valid_user.al ? Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: POSIX module

2004-09-29 Thread Errin Larsen
On Wed, 29 Sep 2004 12:27:03 -0400, Bob Showalter <[EMAIL PROTECTED]> wrote: > Errin Larsen wrote: > > When I use the following in my code, it runs and > > works fine: > > > > use POSIX 'setsid'; > > use POSIX 'errno_h'; > >

RE: POSIX module

2004-09-29 Thread Bob Showalter
Errin Larsen wrote: > When I use the following in my code, it runs and > works fine: > > use POSIX 'setsid'; > use POSIX 'errno_h'; > use POSIX ':sys_wait_h'; > > However, when I try to combine those into one line: > > u

Re: POSIX module

2004-09-29 Thread Errin Larsen
On Wed, 29 Sep 2004 11:32:58 -0400, Jim <[EMAIL PROTECTED]> wrote: > > > > > Hi Perlers, > > > > I've seen a lot of tutorial or example code dealing with the > > POSIX module that does something like this: > > > > use POSIX ':sys

RE: POSIX module

2004-09-29 Thread Jim
> Hi Perlers, > > I've seen a lot of tutorial or example code dealing with the > POSIX module that does something like this: > > use POSIX ':sys_wait_h'; > > What does the ':' mean/do in the above line? > Besides googling for it, try

RE: POSIX module

2004-09-29 Thread Bob Showalter
Errin Larsen wrote: > Hi Perlers, > > I've seen a lot of tutorial or example code dealing with the POSIX > module that does something like this: > > use POSIX ':sys_wait_h'; > > What does the ':' mean/do in the above line? It's called

POSIX module

2004-09-29 Thread Errin Larsen
Hi Perlers, I've seen a lot of tutorial or example code dealing with the POSIX module that does something like this: use POSIX ':sys_wait_h'; What does the ':' mean/do in the above line? --Errin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: POSIX::getchar

2003-09-12 Thread Rob Dixon
John Fisher wrote: > > What am I doing wrong? Here are 3 attempts at trying to use getchar. > It seems I am following the Usage, but I guess not. > > > $ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;' > Usage: POSIX::ge

Re: POSIX::getchar

2003-09-12 Thread James Edward Gray II
On Friday, September 12, 2003, at 07:18 AM, JOHN FISHER wrote: What am I doing wrong? Here are 3 attempts at trying to use getchar. It seems I am following the Usage, but I guess not. POSIX's getchar() doesn't take any arguments. It pulls from STDIN automatically. Hope that helps. James --

POSIX::getchar

2003-09-12 Thread JOHN FISHER
What am I doing wrong? Here are 3 attempts at trying to use getchar. It seems I am following the Usage, but I guess not. $ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;' Usage: POSIX::getchar() at -e line 1 $ perl -e 'use POSIX

Re: POSIX 'strftime'

2003-04-06 Thread John W. Krahn
David Gilden wrote: > > Hello, Hello, > How can get the date formatted to include the day of the week (plus one) man 3 strftime [snip] %a The abbreviated weekday name according to the cur­ rent locale. %A The full weekday name according to the current

POSIX 'strftime'

2003-04-06 Thread David Gilden
Hello, How can get the date formatted to include the day of the week (plus one) '04-07-2003-1013' Thanks, Dave ( kora musician / audiophile / web master @ cora connection / Ft. Worth, TX, USA) The following misses the day of week!! #!/usr/bin/perl -w use POSIX 'strftime';

Errno, POSIX, Forking and EAGAIN

2002-12-13 Thread wiggins
I am playing with a daemon that forks and am trying to be thorough as this will hopefully become production code. My daemon uses: use POSIX qw(:sys_wait_h :errno_h :signal_h); For some of the fork handling. Later I looked at the fork description from The Camel (3rd Edition - pg. 715) and then

Problem setting port speeds with POSIX

2002-03-11 Thread Ray Seals
I'm trying to change the inbound and outbound port speeds of a serial port using POSIX. I'm trying to write a small perl script to drive an LCD display. The reason I open it as DisplayIO is because I need to print to standard IO. At the moment all I'm trying to do is change

RE: Warnings with strict and POSIX

2001-10-18 Thread Bob Showalter
> -Original Message- > From: josh hoblitt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 18, 2001 5:01 AM > To: [EMAIL PROTECTED] > Subject: Warnings with strict and POSIX > > > I'm not sure exactly whats going on here. It seems the combination of &g

Warnings with strict and POSIX

2001-10-18 Thread josh hoblitt
I'm not sure exactly whats going on here. It seems the combination of strict and POSIX ":sys_wait_h" is fine... but just POSIX seems to stop the strict bareword warnings. Any idea whats going on here? (exporter wierdness?) #!/usr/bin/perl -w use POSIX; #use POSIX ":sys

POSIX::termios

2001-06-19 Thread Nigel Wetters
I'm playing around with terminal programming on Linux, and wondered whether the POSIX::termios package was the correct method to make my code cross-platform compatible. --nigel This e-mail and any files transmitted with it are confidential and solely for the use of the intended reci