<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/30190939?origin\x3dhttp://clustat.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

sabato, giugno 24, 2006

Creare Device Special Files su HP-UX

#ioscan -fnC <class> (es. tape o disk)
#insf -H <HW Path ricavato dall'ioscan>

vi

Con il tasto ~ in vi in modalità comando converti le lettere da MAIUSCOLO a minuscolo e viceversa.

Fare il boot di un altro kernel da ISL (HP)

ISL> hpux vmunix.new

Rimuovere i file che iniziano con un -

#rm -- -nomefile
oppure
#rm ./-nomefile

Visualizzare la tabella ascii

#man 5 ascii (HP-UX)
#man ascii (Solaris/Linux)

Evitare che con il > un file che esiste venga sovrascritto

#set -o noclobber

Fare il bind di un processo su una particolare cpu su un HP-UX 11i

# psrset -b <processor_set> <pid>

Recuperare il VGID e il PVID su HP-UX con LVM


# DEV=/dev/dsk/cXtYdZ
# PVID=`echo 0x2008?2Xadb $DEVexpandtr -d " " sed "s/2008:/PVID /"`
# VGID=`echo 0x2010?2Xadb $DEVexpandtr -d " " sed "s/2010:/VGID /"`
# echo $PVID $VGID