475 reputation
38
bio website
location
age
visits member for 2 years, 9 months
seen 6 hours ago

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
7
revised How to perform a multi line grep
added 16 characters in body
Oct
3
answered How to perform a multi line grep
Oct
2
comment HPUX Logging Logins
That doesn't work on any HP-UX system I've used. Is that an extra product?
Oct
1
awarded  Yearling
Oct
1
awarded  Revival
Sep
30
revised How to get grep exit code but print all lines?
added 57 characters in body
Sep
30
comment How to get grep exit code but print all lines?
@jimmij - yes sorry, i misread.
Sep
30
revised How to get grep exit code but print all lines?
deleted 399 characters in body
Sep
30
comment How to get grep exit code but print all lines?
@jimmij - if you are using bash you can use 'set -o pipefail' and the return code will be not be of grep but the command that failed.
Sep
30
answered How to get grep exit code but print all lines?
Sep
30
comment HPUX Logging Logins
SSH has its own logging which is somewhat configurable. Telnet (on HP-UX) is an inetd service and is not very configurable.
Sep
29
answered How can I use virtual users in “write list” and “read list” in samba?
Sep
28
answered HPUX Logging Logins