Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: zhenning
  • Content: Threads
  • Order by date
  1. zhenning

    A hidden folder made in Vista cannot be seen in DOS

    I am trying to copy some files out of a corrupted Vista system. I boot into Command Prompt mode using Windows 7 CD. I can copy most of the folders/files out. But I cannot see a hidden folder in Vista. I tried to remove the hidden attribute for this folder in DOS using following command but it...
  2. zhenning

    syslog-ng cannot start on Linux

    Our syslog-ng stopped working by itself and cannot start again: [root@scylla init.d]# /etc/init.d/syslog-ng status Checking for syslog-ng service: \033[31mdead but pidfile exists.\033[0m [root@scylla init.d]# /etc/init.d/syslog-ng start Starting syslog-ng: OK [root@scylla init.d]#...
  3. zhenning

    How to insert delay between two lines in Perl

    I have a perl script which telnet to Cisco switches and apply commands. I want to insert a 20 seconds delay between the following two lines because it takes time for the switch to do "wri mem": $session->cmd('wri mem'); $session->cmd("store\n\n\n"); How can I do it? Thanks a lot! Zhenning
  4. zhenning

    how to return certain line of a file

    For example, if the input of the script is 3, I need to get the 3rd line from the bottom of the file as the output. How can I make it? Thanks a lot! Zhenning
  5. zhenning

    Syslog Event Correlator(SEC) Error

    We use SEC to generate network alerts and it just stopped working. I can see following logs in sec.log: Wed Oct 8 10:26:28 2008: Creating event 'dist-jnhn line protocol on GigabitEthernet10/16 down at Oct 8 10:26:12' Wed Oct 8 10:26:28 2008: Executing shell command '/usr/bin/perl -w...
  6. zhenning

    How to rotate syslog files

    We use msyslogd and it is now configured to rotate after 14 log files at /etc/logrotate.d/syslog_cisco_fwsm: /var/log/cisco_fwsm.log { size=200M rotate 14 postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true...
  7. zhenning

    msyslogd cannot start

    msyslogd on Linux server stopped itself. I tried to start it. It says OK but when I see its status, it says stopped. [dxu@scylla logrotate.d]$ sudo /sbin/service msyslog start Starting msyslogd: [ OK ] [dxu@scylla logrotate.d]$ sudo /sbin/service...
  8. zhenning

    How to check Windows Update Agent version?

    I know the Windows Update Agent is installed by Windows Updates automatically. But how can I check where it is installed? What is its version? Thanks!
  9. zhenning

    Bulk rename files in Redhat

    I use Redhat AS 3 and I want to remove '2005' in a bulk of file names. I tried following command: rename -v 's/92005/9/' *2005* Then I got no output and the files names are not changed. What could be wrong here? Thanks, Zhenning
  10. zhenning

    2007 DST Change on Redhat 8

    I have searched previous discussions about DST change on linux and successfully patched one Redhat Enterprise 3 server. But I have another Redhat 8 server which is a retired version. I did not find any rpm packages for DST change on Redhat 8. How could I do this? Thanks!
  11. zhenning

    Can not print die_string using die function

    I tried to print an error string using die function: open(F,$pathname) || die("No data available for the specified date, Please select another date.\n"); But I just got the program finished without printing error string. What could be wrong? Thanks! Zhenning
  12. zhenning

    SCP stopped working

    Today I just found SCP stopped working on my Linux box suddenly: # scp scp: error while loading shared libraries: libz.so.1: cannot open shared object file: Input/output error Also I got following error: # man scp groff: error while loading shared libraries: libstdc++.so.5: cannot open shared...
  13. zhenning

    Question with open file

    Hi, I can open a file using "open(F,"19150009212005.txt");" I also one variable : $date=09212005 How can I open the file using this variable? I tried: open(F,"191500/$date/.txt"); It did not work. Thanks zhenning
  14. zhenning

    Using unix grep command in Perl

    Hi Group, I am new to Perl programming. I want to use unix grep command in perl program to grep a pattern in a file, and put the result line into an array, like @array = (/usr/bin/grep XXX abc.txt). How could I achieve this? Thanks a lot! zhenning

Part and Inventory Search

Back
Top