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/
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/
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
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
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
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
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 =~
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) =
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
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]
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
11 matches
Mail list logo