parsed.org

Tips by tag: system

Linux Shared Memory by cygnus on Jan 12, 2005 10:39 AM

Update /etc/sysctl.conf and add (or alter):

kernel.shmmax = <max bytes>

and run sysctl -p to update the system settings.

commandsconfigurationshared-memorysysctlsysctl.confsystem
List Connected Users in Oracle by xinu on Dec 31, 2007 10:05 AM

Run the following query:

SELECT s.username, s.program, s.logon_time
FROM v$session s, v$process p, sys.v_$sess_io si
WHERE s.paddr = p.addr(+)
AND si.sid(+) = s.sid
AND s.type = 'USER';
connectionsoraclesqlplussystemv$processv$session
os.system and Broken Pipes by cygnus on Dec 31, 2005 04:08 PM

If you're using os.system to run a command (such as xterm running man) and you get "broken pipe" errors, you can restore standard pipe functionality with the signal module:

import signal
signal.signal(signal.SIGPIPE, signal.SIG_DFL)

# Call os.system after calling signal.signal.

Note: information taken from http://monkeyfingers.org/ (page now unavailable).

brokenlanguagesospipeprogrammingpythonsignalsystemunix
Turn off System Beep by xinu on Feb 08, 2008 08:54 AM

Tired of that annoying system beep going off while you're typing away in vim? Turn it off with this command:

C:\> net stop beep
beepcmddossystem
RSS