486 reputation
39
bio website
location
age
visits member for 2 years, 11 months
seen 2 days ago

Dec
5
comment How to replicate KVM for DR purpose?
What storage are you using? eg SAN, local, iSCSI, FCoE?
Dec
5
revised Variable scope in while-read-loop on Solaris
Imporved formatting - indentation
Dec
5
suggested approved edit on Variable scope in while-read-loop on Solaris
Nov
26
comment How can I shutdown a RHEL server at 06:45 tomorrow morning?
instead of killall, why not shutdown -c ?
Nov
26
comment find and sed (find and replace) causes illegal byte sequence on Mac OS X
I think your sed options are around the wrong way - that will change dots to underscores.
Nov
19
comment How can I write an alias for cd such that it will fire ls after going into the directory to which I just cd'ed into?
.bashrc: export A=$PWD; export PROMPT_COMMAND='if [[ $A != "$PWD" ]];then A=$PWD; ls -l $PWD; fi'
Nov
17
revised How do I automate this in a shell script?
deleted 78 characters in body
Nov
13
comment Automatically pauseing rsync if target is full
if=/dev/stdin is unnecessary as it is default
Nov
11
comment How to subtract two times in shell
This solution is far more complicated than it shoud be.
Nov
11
awarded  Citizen Patrol
Nov
6
comment How do I retain custom PS1 in super user mode?
You could use 'sudo -s' instead of 'su'.
Nov
4
comment CSH - How to check if input is NOT number
'+' means 1 or more. '*' means 0 or more. The latter will match an empty string.
Oct
22
answered How do I automate this in a shell script?
Oct
21
answered Count records matching pattern with Awk
Oct
20
comment How do I automate this in a shell script?
Start with creating SSH keys and a sudoers rule with NOPASSWD. Then put your commands into a script and add the usual checks.
Oct
20
comment What does the command pkill -USR1 -n -x dd mean exactly?
This is only in the GNU version of 'dd' (AFAIK). A SIGUSR1 to 'dd' for other OSes (eg AIX, HP-UX & Solaris) will terminate the process, by default.
Oct
20
revised CSH - How to check if input is NOT number
added 15 characters in body
Oct
20
comment CSH - How to check if input is NOT number
$argv returns all the arguments, whereas $#argv returns the number of arguments
Oct
20
answered CSH - How to check if input is NOT number
Oct
2
comment HPUX Logging Logins
That doesn't work on any HP-UX system I've used. Is that an extra product?