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...
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]#...
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
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
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...
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...
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...
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
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!
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
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...
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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.