Can't call method "get_value....

2010-08-05 Thread sync
Hi, guys: i have a perl script that supposed to add users to ldap . when i run the script it get: Can't call method "get_value" on an undefined value at ./add_user.pl Any help will be appreciated? The following message is my perl script message and my perl version is 5.8.8 on CentOS 5.4

Re: Can't call method "get_value....

2010-08-05 Thread sync
On Thu, Aug 5, 2010 at 4:09 PM, Rob Coops wrote: > On Thu, Aug 5, 2010 at 9:52 AM, sync wrote: > > > Hi, guys: > > > > i have a perl script that supposed to add users to ldap . when i run the > > script it get: > > > > Can't call method &qu

Perl GD graph help

2010-10-25 Thread sync
Hi ,all : I am new to this , and I want to write the code to monit the CPU load situation and produce the graph about that . I tried to google something about that and found the perl module called GD::Graph can create the graph . But i met the problem that i don't know how to get the CPU loa

Re: Perl GD graph help

2010-10-25 Thread sync
On Tue, Oct 26, 2010 at 10:08 AM, Shawn H Corey wrote: > On 10-10-25 09:20 PM, sync wrote: > >> I tried to google something about that and found the perl module called >> GD::Graph >> can create the graph . But i met the problem that i don't know how to >&g

About perl ftp problem

2010-11-02 Thread sync
Hi, all : I want to write the script to monit the ftp users actions on time, The website is the best . like this : users time actions test121:23 download the test file test221:30 downlo

About the perl $_ problem

2010-11-03 Thread sync
Hi, all : The followings are the two perl scripts: t...@camlit ~: cat test1.pl 1. #!/usr/bin/perl 2. 3. while (){ 4. print $line if /6/; 5. $line = $_; 6. } 7. 8. __DATA__ 9. 1 10. 2 11. 3 12. 4 13. 5 14. 6 15. 7 16. 8 * * t...@camlit ~: cat tes

Perl perl recursive list ftp files

2010-11-04 Thread sync
Hi ,all : I have a trouble about the how to recur list the ftp lists with the perl . The result like this : --- /dir1 /sub-dir1 test1 /dir2 /sub-dir2 test2 /dir3 /sub-dir3 test3 ... ---

Perl for windows Problem

2011-01-05 Thread sync
Hi: Could I get the windows information( like CPU load, memory..) from my linux Client with Perl ? I also search the perl module and found this module called Win32::OLE can do it , but it can only on Windows , is there some method on my Linux Client? Thanks

Re: Perl for windows Problem

2011-01-05 Thread sync
On Thu, Jan 6, 2011 at 1:25 PM, Sheppy R wrote: > *As usual... forgot to reply to all...* > > > Check out Sys::Info and the other Sys::Info based modules. These should do > what you need. > > http://search.cpan.org/search?query=sys%3A%3Ainfo&mode=all > > > > Thanks for your suggestion, but I fou

Re: Perl for windows Problem

2011-01-06 Thread sync
On Thu, Jan 6, 2011 at 6:49 PM, Jeff Pang wrote: > > > > That's to say , is there some methods that I can use to write some perl > > scripts on Linux Server > > to check the Windows Server System information ( CPU load , Memory and > so > > on )? > > > > Net::SNMP is your friend. > Yeah ! Than

Perl Mail::Sendmail encoding problem

2011-01-17 Thread sync
Greetings all, I have to send emails through a smtp server, with Chinese character encoding. In details , the encoding of my send mail is UTF-8, but the encoding of others received is GB2321 , so it will apprears with "weird" characters. Does anyone has any working example or any suggestio

How to monitor Windows CPU usage in Linux Server

2011-01-23 Thread sync
Hello, guys: is there any information in the MIB about the CPU-usage. I am monitoring Windows-machines using whatsup and the goal is to raise an alarm if the usage passes a certain threshold. By the way , I want to monitor them in Linux Server (CentOS), and the Windows is Windows XP . Thanks

How to list all Linux machines info with perl ?

2011-02-28 Thread sync
Hi, all : I have many linux machines connected in a network. Now I want ot create a perl script which will list all the machines info in a network. Like the following : - Host: xxx OS: xxx Kernel :xxx CPU Info:xxx I googled the Internet and