Timezone conversion

2004-04-02 Thread Distribution Lists
can someone give me ideas of how I could covert this date and time stamp that is in GMT to Central time ? 2004-04-01-19:15:15.525+00:00 Thanks -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Timezone conversion

2004-04-01 Thread Distribution Lists
can someone give me ideas of how I could convert this date and time stamp that is in GMT to Central time ? 2004-04-01-19:15:15.525+00:00 Thanks -- -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Regular expression to replace whitespace with comma

2004-03-12 Thread Distribution Lists
Can someone please tell what regular expression would change Server Drive FSTYPE Size Free Used SERVER1 C$ NTFS4095 296 3799 SERVER2 D$ NTFS4001 1908 2093 SERVER3 C$ NTFS 38123 29811 8312 to

[Fwd: Re: Regular expression to replace whitespace with comma]

2004-03-12 Thread Distribution Lists
there is no comma, but a newline So that it will come out like this Server,Drive,FSTYPE,Size,Free,Used SERVER1,C$,NTFS,4095,296,3799 SERVER2,D$,NTFS,4001,1908,2093 SERVER3,C$,NTFS,38123,29812,8315 On Mar 12, 2004, at 2:55 PM, Distribution Lists wrote: Can someone please tell what regular

Re: Regular expression to replace whitespace with comma

2004-03-12 Thread Distribution Lists
That worked great! Thanks Darryl On Mar 12, 2004, at 3:19 PM, Distribution Lists wrote: Thanks but I've that already try that C:\tempperl -pi.bak -e s/\s+/,/g tempfile.out Add the -l switch to that to chomp the newline and replace it when it prints: perl -pli.bak -e s/\s+/,/g

search for string then deleting a line

2003-07-31 Thread Distribution Lists
Can someone give me a clue I want to search through a file for a given string, when the string is found then delete the whole line. For example test.user: cd9p06 search for test.user, then delete test.user: cd9p06 Thanks -- http://www.e-securenetworks.net http://www.shopper-holic.com

Can't get the regular expression right

2003-07-09 Thread Distribution Lists
I'm trying to check if a user exists in /etc/passwd on a remote Here is my code, tried to do this 2 different ways, neither way will work. Any advice ? @pairs = split(//, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~

Re: Can't get the regular expression right

2003-07-09 Thread Distribution Lists
Doh...just realized I'm evaluating the wrong way...sorry I'm trying to check if a user exists in /etc/passwd on a remote Here is my code, tried to do this 2 different ways, neither way will work. Any advice ? @pairs = split(//, $buffer); foreach $pair (@pairs) { ($name, $value) =

should be simple perl cgi

2003-03-31 Thread Distribution Lists
Can anyone please tell me what is wrong with this #!/usr/bin/perl print Content-type:text/html\n\n; $OUTPUT = `rsh testaix ldapsearch -h hostname -D cn=root -w password -b o=company,c=us uid=userid userpassword | grep userpassword | cut -f 2 -d =`; chomp ($OUTPUT); print META

module to encrypt TCP stream

2003-02-06 Thread Distribution Lists
Hi, using IO:SOCKET I have written a server daemon that listens on a particular port. Is there a module that I can use in my code to encrypt traffic between the client and server ? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Timing an execution of an command

2003-02-04 Thread Distribution Lists
I've written some Perl code that will make use of LDAP modules and will do an LDAPSEARCH to a specific ldap server. However, I would like to know the time take to complete the LDAPSEARCH so I can graph the response time. What can I do within Perl to measure the completion time of the search ? Any