FYI, forgot to include this in the original post. If I change the program to monitor another perl script and add "$| = 1" in the other perl script, this works. I need to do the equivalent in the systemtap script somehow.
Thanks!
Typo above, I forgot the pipe. This only prints when the command exits, not in real time.
open(STAP, "/root/loop.stp |");
while ( <STAP> ) {
print;
}
--
Chris
RHCE, SCSA, AIX5L, LPIC, CNE, CCNA, MCSE
I have a systemtap script (loop.stp) that continuously runs and prints output periodically. I want to monitor this output from a perl script. Why does this code below not print anything? If I change this to /bin/ps, it does print the entire output when the command exits. I need it to print...
I was able to get this working well enough for what we need it for. I just need to redirect all SSL requests to the same page. I got this working by adding the following to the <VirtualHost _default_:443> section.
RewriteEngine on
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)...
The code you posted doesn't seem to do anything.
The code I originally posted I have in the default section that handles port 80 requests. If I put the same request in the httpd.d/ssl.conf file under the <VirtualHost _default_:443> section, all requests just hang in Internet Explorer. If I...
tarn, what I have above already does that. My issue is that it does not work for SSL requests. For example, a user goes to https://www.foo.org/blablabla. How do I redirect that to another page? It only works for http, not https.
I'm trying to redirect all requests on a server to a single page that informs the users that the website has been retired. I put this code in the httpd.conf file:
RewriteEngine on
RewriteRule /* https://www.foo.org/Server_Retire_Prompt.html [R]
This works as expected for all standard...
You are right! Looking at the locale output I was able to determine that setting this variable will force sar to display it's output in 24-hour times.
export LC_TIME="POSIX"
Thanks Annihilannic! I remember you from 8 years ago back when I was very active on the board under the now retired...
I just checked and all of the servers have the same values in /etc/sysconfig/i18n, yet some display a 12-hour format while others a 24-hour format.
--
Chris
RHCE, SCSA, AIX5L, LPIC, CNE, CCNA, MCSE
You do not need 'mount -a' in your /etc/rc.local in order for filesystems mounted with _netdev in /etc/fstab to mount automatically. Adding 'mount -a' to rc.local is the equivalent of mounting them manually. I'm not saying it won't work, but you have another issue going on that is preventing...
I have a few systems that are the same operating system (RHEL 5.6) and all have the same version of sar installed (sysstat-7.0.2-3.el5_5.1). On some systems, the time is shown in 12-hour format.
serverA# sar -r | head -4
12:00:01 AM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree...
Is there a built-in command in Solaris that will list all installed packages sorted by the date they were installed? You can do this easily on RPM-based Linux systems by using the code below. I'm looking for an equivalent command in Solaris, if one exists.
# rpm -qa --last | head...
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.