BASH / Bourne SHELL Profile & Features

( Global Config FIle for ALL SHELLS ) 1. Launch shell (BASH / Bourne / C / KSH / TCSH ) 2. Solaris sets up the user’s environment – /etc/profile 3. Shell searches for ~/.bash_profile (BASH) , ~/.profile 4. prompt is presented to user env Sun Microsystems Inc. SunOS 5.10 Generic January 2005 -bash-3.00# env… Leer más »

BASH Shell Command Chaining

###BASH Command Chaining/Logical ANDing/ORing### Command Chaining: TO run a -> b -> c ls -lF /etc; pwd;who;ps Logical ANDing: Program b will execute only if program a was executed a&&b&&c Programs mutually inclusive Returns a exit status 0 and then run b exit status 0 and then run C Logical ANDing – runs subsequent based… Leer más »

create raid T6300

FYI, I managed to do this by booting from a remote Jumpstart image – in single user, and then using the following command: raidctl -c c0t0d0 c0t1d0 Just booting to single user won’t let you do this – you have to be booted from something other than c0t0d0 or c0t1d0, i.e. CD or a jumpstart… Leer más »

BASH Shell Redirection

Redirection Basics: ( < )STDIN - where to get input. i.e. keyboard, file ( > ) STDOUT – where to send processed info. i.e. Monitor, file STDERR – where to send program error. i.e. monitor, background, file < - STDDIN > – STDOUT – This redirects STDOUT from screen (default) to a file >> –… Leer más »

Basic BASH Shell

-bash-3.00# who pedro pts/1 Aug 20 12:35 (172.16.2.80) pedro pts/2 Aug 20 13:06 (172.16.2.80) -bash-3.00# w 2:32pm up 2:02, 2 users, load average: 0.46, 0.46, 0.42 User tty login@ idle JCPU PCPU what pedro pts/1 12:35pm 50 21:16 14 sysbench –test=oltp –oltp-tabl pedro pts/2 1:06pm 1 -bash Current Terminal Session: -bash-3.00# tty /dev/pts/2 -bash-3.00# w/who… Leer más »

fcinfo HBA ports

A handy Solaris 10 command: fcinfo Filed under: Solaris, Storage — christianbilien @ 4:14 pm One the most useful new command I found in Solaris 10 is fcinfo, a command line interface that will display information on HBA ports on a host, but also many useful bits of information on connected storage remote port WWN,… Leer más »

PHP 5 OSCOMMERCE BUG

PHP 5 Oscommerce BUG Hello! D:\xampplite\htdocs\linux\shop\admin\includes\classes\ipload.php on line 31 i did this: instead of this: ________________________ // self destruct $this = null; return false; } } } ________________________ biggrin.gif i did this: ________________________ // self destruct unset($this); return false; } } }

Quote

«Technology does not open roads; it creates important bridges, but it is us to want to cross them.» Carlos Slim

Using SMF Property to Allow Remote Access

The following sequence of commands allows remote access to WBEM-based applications, including the Solaris Management Console. # svccfg -s svc:/application/management/wbem setprop options/tcp_listen = true # svcadm refresh svc:/application/management/wbem